public BusinessPartnerBaseDataResponse LoadAll() { BusinessPartnerBaseDataResponse response = new BusinessPartnerBaseDataResponse(); response.ResponseCompanies = companyRepository.GetAll(); response.ResponsePaymentTerms = paymentTermRepository.GetAll(); response.ResponseBusinessLegalStatuses = businessLegalStatusRepository.GetAll(); response.ResponseBPRatingTypes = bpRatingTypeRepository.GetAll(); response.ResponseBusinessPartners = businessPartnerRepository.GetAll(); response.ResponseDealingEmployees = employeeRepository.GetAll(); response.ResponseOccupationTypes = occupationTypeRepository.GetAll(); response.ResponseBusinessPartnerCompanies = businessPartnerCompanyRepository.GetAll(); response.ResponseCountries = countryRepository.GetAll(); response.ResponseBusinessSegments = businessSegmentRepository.GetAll(); response.ResponseBusinessPartnerSubTypes = businessPartnerSubTypeRepository.GetAll(); response.ResponsePhoneTypes = phoneTypeRepository.GetAll(); response.ResponseAddressTypes = addressTypeRepository.GetAll(); response.ResponseMarketingChannels = marketingChannelRepository.GetAll(); response.ResponseBusinessPartnerRelationshipTypes = businessPartnerRelationshipTypeRepository.GetAll(); response.ResponseRegions = regionRepository.GetAll(); response.ResponseSubRegions = subRegionRepository.GetAll(); response.ResponseCities = cityRepository.GetAll(); response.ResponseAreas = areaRepository.GetAll(); return(response); }
public List <AddressType> GetTypes() { return(ExecuteFaultHandledOperation(() => { List <AddressType> address_types = _cache.Get(CacheKeys.AddressTypes) as List <AddressType>; if (address_types == null) { Log.Debug("AddressTypeRepository GetAll called"); address_types = new List <AddressType>(); var address_type_data = _repo_addr_type.GetAll(); foreach (AddressTypeData account_type in address_type_data) { address_types.Add(_addr_es.Map(account_type)); } _cache.Set(CacheKeys.AddressTypes, address_types); Log.Debug("AddressTypeRepository GetAll complete"); } return address_types; })); }
/// <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() }); }
public IActionResult Index() { var data = _repository.GetAll(); return(Helper.CheckResult(data)); }