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);
        }
示例#2
0
        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;
                    }
                }
            }
        }
示例#3
0
 public AddEmployeeViewModel()
 {
     service = Container.Resolve <IEISService>();
 }
 public AccountController(IEISService <Users> service, IHttpContextAccessor httpContextAccessor) : base(service)
 {
     _httpContextAccessor = httpContextAccessor;
 }
示例#5
0
 public MenuToolsViewModel()
 {
     apiService = Container.Resolve <IEISService>();
 }
 public HolidayController(IEISService <Holiday> service) : base(service)
 {
 }
 public BaseController(IEISService <T> service)
 {
     ApiUrl   = MyHttpContext.APIBaseURL;
     _service = service;
 }
示例#8
0
 public LocationController(IEISService <Locations> service) : base(service)
 {
 }
示例#9
0
 public AttendanceController(IEISService <Attendance> service) : base(service)
 {
 }
示例#10
0
 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;
 }
示例#12
0
 public DashboardController(IEISService <Person> service, IServiceWrapper services) : base(service)
 {
     _services = services;
 }