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);
        }
Example #2
0
 /// <summary>
 /// Load all Marketing Channels
 /// </summary>
 public IEnumerable <MarketingChannel> LoadAll()
 {
     return(marketingChannelRepository.GetAll());
 }