Beispiel #1
0
        public async Task <ListOfPlacesViewModels> GetPlaceByIpAddress(
            string ipAddress,
            string country  = "UK",
            string currency = "GBP",
            string locale   = "en-GB")
        {
            ListOfPlaces listOfPlaces = await _skyscannerProvider.GetPlaceByIpAddress(ipAddress, country, currency, locale);

            ListOfPlacesViewModels listOfPlaceViewModels = _skyscannerMapper.MapListOfPlacesToListOfPlacesViewModel(listOfPlaces);

            return(listOfPlaceViewModels);
        }
Beispiel #2
0
        public async Task <ListOfPlacesViewModels> GetPlaceByIpAddress(
            string ipAddress,
            string country  = "UK",
            string currency = "GBP",
            string locale   = "en-GB")
        {
            ListOfPlaces listOfPlaces = await FileHelper.GetDataAsync <ListOfPlaces>(FileName.PARENT_FOLDER, FileName.PLACE_IP_80_73_11_139);

            ListOfPlacesViewModels listOfPlaceViewModels = _skyscannerMapper.MapListOfPlacesToListOfPlacesViewModel(listOfPlaces);

            return(listOfPlaceViewModels);
        }