예제 #1
0
        public async Task <IActionResult> Get(string culture = null)
        {
            var stationListResponse = await _resourcesService.GetStationList(culture);

            var marketListResponse = await _resourcesService.GetMarketList();

            var cultureListResponse = await _resourcesService.GetCultureList();

            var currencyListResponse = await _resourcesService.GetCurrencyList();

            var paxTypeListResponse = await _resourcesService.GetPaxTypeList();

            var travelDocTypeListResponse = await _resourcesService.GetDocTypeList(culture);

            var feeListResponse = await _resourcesService.GetFeeList(culture);

            var ssrList = await _resourcesService.GetSSRList(culture);

            var titleList = await _resourcesService.GetTitleList(culture);

            var countryList = await _resourcesService.GetCountryList(culture);

            var paymentMethods = await _resourcesService.GetPaymentMethodsList(culture);

            var resources = new AllResourcesResponse
            {
                StationList       = stationListResponse.StationList,
                MarketList        = marketListResponse.MarketList,
                CultureList       = cultureListResponse.CultureList,
                CurrencyList      = currencyListResponse.CurrencyList,
                PaxTypeList       = paxTypeListResponse.PaxTypeList,
                FeeList           = feeListResponse.FeeList,
                DocTypeList       = travelDocTypeListResponse.DocTypeList,
                SSRList           = ssrList.SSRList,
                TitleList         = titleList.TitleList,
                CountryList       = countryList.CountryList,
                PaymentMethodList = paymentMethods.PaymentMethodList,
            };

            return(new OkObjectResult(resources));
        }