public EmployeeBaseData GetEmployeeData(int?employeeId) { EmployeeBaseData baseData = new EmployeeBaseData(); if (employeeId != null) { var empId = (int)employeeId; baseData.Employee = employeeRepository.Find(empId); baseData.EmployeePhoto = documentRepository.GetAllDocumentByRefId(empId, (int)DocumentType.EmployeePhoto).FirstOrDefault(); } baseData.Designation = designationRepository.GetAll(); baseData.Role = aspNetRoleRepository.GetAll(); return(baseData); }
public IEnumerable <AspNetRole> GetAll() { var entities = repository.GetAll(); return(entities); }
public IEnumerable <AspNetRole> GetAllRegisteredRoles() { return(aspNetRoleRepository.GetAll()); }
public IEnumerable <UserRole> GetAllRoles() { return(aspNetRoleRepository.GetAll().Where(x => x.Name != ISTApplicationRoles.SystemAdministrator)); }