UserService.cs 727 B

12345678910111213141516171819202122232425262728293031323334
  1. using Newtonsoft.Json;
  2. using Newtonsoft.Json.Linq;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Threading.Tasks;
  7. using WK_KLI_LAPS_COMMONTOOL_Service.App_Data;
  8. namespace WK_KLI_LAPS_COMMONTOOL_Service.Controllers.Master.User
  9. {
  10. public interface IUserService
  11. {
  12. object GetById(int id);
  13. }
  14. public class UserService : IUserService
  15. {
  16. CommonRepository oCommonRepository = new CommonRepository();
  17. public object GetById(int id)
  18. {
  19. return oCommonRepository.FindByID(id);
  20. }
  21. public object GetByuserId(int id)
  22. {
  23. return oCommonRepository.FindByIdForUser(id);
  24. }
  25. }
  26. }