Ejemplo n.º 1
0
 public UserRegisterModel()
 {
     _userService = new UserService();
     //_departmentService = new DepartmentService();
     //_designationService = new DesignationService();
     _userRoleService = new UserRoleService();
     //passwordPolicyConfigService = new PasswordPolicyConfigService();
     //Departments = _departmentService.GetAllDepartments();
     //Designations = _designationService.GetAllDesignation();
     Roles      = _userRoleService.GetAllRoles();
     ExpireDate = ExpireDateStr != "" ? Convert.ToDateTime(ExpireDateStr) : DateTime.Now;
 }
Ejemplo n.º 2
0
 public IEnumerable <RoleDto> GetRoles()
 {
     return(_roleService.GetAllRoles());
 }