Example #1
0
        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);
        }
Example #2
0
        public IEnumerable <AspNetRole> GetAll()
        {
            var entities = repository.GetAll();

            return(entities);
        }
Example #3
0
 public IEnumerable <AspNetRole> GetAllRegisteredRoles()
 {
     return(aspNetRoleRepository.GetAll());
 }
 public IEnumerable <UserRole> GetAllRoles()
 {
     return(aspNetRoleRepository.GetAll().Where(x => x.Name != ISTApplicationRoles.SystemAdministrator));
 }