public PeopleController(IEISService <Person> service, IControllerService controllerService, IServiceWrapper services, IHostingEnvironment environment) : base(service) { _environment = environment; _controllerService = controllerService; _services = services; HttpResponseMessage response = _services.Roles.GetResponse(ApiUrl + "/api/Employee/Designations"); string stringData = response.Content.ReadAsStringAsync().Result; rolesList = JsonConvert.DeserializeObject <List <Role> >(stringData); }
public UserController(IEISService <Users> service) { this.service = service; HttpResponseMessage response = service.GetResponse(ApiUrl + "/api/User"); string stringData = response.Content.ReadAsStringAsync().Result; Users = JsonConvert.DeserializeObject <List <Users> >(stringData); response = service.GetResponse(ApiUrl + "/api/Employee"); string stringData2 = response.Content.ReadAsStringAsync().Result; Persons = JsonConvert.DeserializeObject <List <Person> >(stringData2); foreach (var p in Users) { foreach (var d in Persons) { if (p.PersonId == d.Id) { p.Person = d; } } } }
public AddEmployeeViewModel() { service = Container.Resolve <IEISService>(); }
public AccountController(IEISService <Users> service, IHttpContextAccessor httpContextAccessor) : base(service) { _httpContextAccessor = httpContextAccessor; }
public MenuToolsViewModel() { apiService = Container.Resolve <IEISService>(); }
public HolidayController(IEISService <Holiday> service) : base(service) { }
public BaseController(IEISService <T> service) { ApiUrl = MyHttpContext.APIBaseURL; _service = service; }
public LocationController(IEISService <Locations> service) : base(service) { }
public AttendanceController(IEISService <Attendance> service) : base(service) { }
public AdminDetailsController(IEISService <Person> service, IControllerService controllerService, IServiceWrapper services, IHostingEnvironment environment) : base(service) { _environment = environment; _controllerService = controllerService; _services = services; }
public LeaveController(IServiceWrapper services, IEISService <EmployeeLeaves> service, IHubContext <PendingLeavesCountHub> hubContext) : base(service) { _services = services; _hubContext = hubContext; }
public DashboardController(IEISService <Person> service, IServiceWrapper services) : base(service) { _services = services; }