Example #1
0
 /// <summary>
 /// Get Base Data
 /// </summary>
 /// <returns></returns>
 public EmployeeBaseResponse GetBaseData()
 {
     return(new EmployeeBaseResponse
     {
         EmpStatuses = empStatusRepository.GetAll(),
         Companies = companyRepository.GetAll(),
         JobTypes = jobTypeRepository.GetAll(),
         Departments = departmentRepository.GetAll(),
         DesigGrades = desigGradeRepository.GetAll(),
         WorkPlaces = workplaceRepository.GetAll(),
         Regions = regionRepository.GetAll(),
         Countries = countryRepository.GetAll(),
         SubRegions = subRegionRepository.GetAll(),
         Cities = cityRepository.GetAll(),
         Areas = areaRepository.GetAll(),
         PhoneTypes = phoneTypeRepository.GetAll(),
         LicenseTypes = licenseTypeRepository.GetAll(),
         Operations = operationRepository.GetAll(),
         OperationsWorkPlaces = operationsWorkPlaceRepository.GetAll(),
         Supervisors = employeeRepository.GetAll(),
         Designations = designationRepository.GetAll(),
         AddressTypes = addressTypeRepository.GetAll()
     });
 }
Example #2
0
 /// <summary>
 /// Load all Employee Status
 /// </summary>
 public IEnumerable <EmpStatus> LoadAll()
 {
     return(employeeStatusRepository.GetAll());
 }