public UserRoleBL() { _unitOfWork = new CmsUoW(); roleService = _unitOfWork.Repository <Role>(); userService = new UserStore(_unitOfWork); employeeInofService = new EmployeeBL(_unitOfWork); }
public CompanyBL() { _unitOfWork = GetUnitOfWork(); cityService = new CityBL(_unitOfWork); employeeService = new EmployeeBL(_unitOfWork); paymentTermService = new PaymentTermBL(_unitOfWork); paymentModeService = new PaymentModeBL(_unitOfWork); accountStatusService = new AccountStatusBL(_unitOfWork); accountTypeService = new AccountTypeBL(_unitOfWork); businessTypeService = new BusinessTypeBL(_unitOfWork); industryService = new IndustryBL(_unitOfWork); organizationTypeService = new OrganizationTypeBL(_unitOfWork); billingPeriodService = new BillingPeriodBL(_unitOfWork); }
private void populateUser(User user, IdentityUser identityUser) { EmployeeBL employeeService = new EmployeeBL(_unitOfWork); user.UserId = identityUser.Id; user.UserName = identityUser.UserName; user.PasswordHash = identityUser.PasswordHash; user.SaltHash = identityUser.SaltHash; user.EmployeeId = identityUser.EmployeeId; user.Employee = employeeService.GetById(identityUser.EmployeeId); user.CreatedBy = identityUser.CreatedBy; user.CreatedDate = identityUser.CreatedDate; user.ModifiedBy = identityUser.ModifiedBy; user.ModifiedDate = identityUser.ModifiedDate; user.RecordStatus = identityUser.RecordStatus; user.LastLogInDate = identityUser.LastLogInDate; user.LastPasswordChange = identityUser.LastPasswordChange; user.OldPassword = user.PasswordHash; }
public UserStore() { _unitOfWork = new CmsUoW(); employeeAssignmentService = new EmployeeBL(_unitOfWork); }
public PackageNumberBL(ICmsUoW unitOfWork) : base(unitOfWork) { employeeService = new EmployeeBL(unitOfWork); }