예제 #1
0
        public async Task <IActionResult> Index()
        {
            //var getCountryTasks = new List<Task<string>>();

            //getCountryTasks.Add(_SabreConnector.SendRequest("/v1/lists/supported/countries"
            //    , "pointofsalecountry=US", false));

            //getCountryTasks.Add(_SabreConnector.SendRequest("/v1/lists/supported/countries"
            //    , "pointofsalecountry=DE", false));

            //getCountryTasks.Add(_SabreConnector.SendRequest("/v1/lists/supported/countries"
            //    , "pointofsalecountry=IT", false));

            //await Task.WhenAll(getCountryTasks);

            ///var result = await _SabreConnector.SendRequestAsync("/v1/lists/supported/countries"
            //    , "pointofsalecountry=IT", false);

            var result = await _GeoService.GetAirportAutocompleteAsync("bang");

            //TravelConnect.uAPI.AirService airService = new uAPI.AirService();
            //airService.Ping();

            return(View(result));
        }
예제 #2
0
        public async Task <AirportAutocompleteRS> Get(string query)
        {
            AirportAutocompleteRS response = await _GeoService.GetAirportAutocompleteAsync(query);

            return(response);
        }