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; }
public IEnumerable <RoleDto> GetRoles() { return(_roleService.GetAllRoles()); }