UserService.cs 532 B

1234567891011121314151617181920212223
  1. using LAPS_XMLQC_Service.App_Data;
  2. namespace LAPS_XMLQC_Service.Controllers.Master.User
  3. {
  4. public interface IUserService
  5. {
  6. object GetById(int id);
  7. }
  8. public class UserService : IUserService
  9. {
  10. private static CommonRepository _commonRepository;
  11. public UserService(CommonRepository commonRepository)
  12. {
  13. _commonRepository = commonRepository;
  14. }
  15. public object GetById(int id)
  16. {
  17. return _commonRepository.FindByID(id);
  18. }
  19. }
  20. }