public AttorneyController(IRCADAttorneyService AttorneyService, IRCADCompanyService CompanyService, IHttpContextAccessor httpAccessor) { attorneyService = AttorneyService; companyService = CompanyService; USKey = Int16.Parse(httpAccessor.HttpContext.User.Claims.FirstOrDefault(u => u.Type == ClaimTypes.UserData).Value); LFKey = Int16.Parse(httpAccessor.HttpContext.User.Claims.FirstOrDefault(u => u.Type == ClaimTypes.Sid).Value); }
public AdminController(IRCADCompanyService CompanyService, IRCADUserService UserService, IRCADAttorneyService AttorneyService, IRCADUserGroupService UserGroupService, IHttpContextAccessor httpAccessor, IHostingEnvironment environment) { userService = UserService; attorneyService = AttorneyService; companyService = CompanyService; userGroupService = UserGroupService; _environment = environment; USKey = Int16.Parse(httpAccessor.HttpContext.User.Claims.FirstOrDefault(u => u.Type == ClaimTypes.UserData).Value); LFKey = Int16.Parse(httpAccessor.HttpContext.User.Claims.FirstOrDefault(u => u.Type == ClaimTypes.Sid).Value); }