public UserRoleBL()
 {
     _unitOfWork         = new CmsUoW();
     roleService         = _unitOfWork.Repository <Role>();
     userService         = new UserStore(_unitOfWork);
     employeeInofService = new EmployeeBL(_unitOfWork);
 }
Пример #2
0
 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);
 }
Пример #3
0
        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;
        }
Пример #4
0
 public UserStore()
 {
     _unitOfWork = new CmsUoW();
     employeeAssignmentService = new EmployeeBL(_unitOfWork);
 }
Пример #5
0
 public PackageNumberBL(ICmsUoW unitOfWork)
     : base(unitOfWork)
 {
     employeeService = new EmployeeBL(unitOfWork);
 }