public async Task <ListOfCountriesViewModels> GetListOfCountries(string languageId = "en-gb") { ListOfContinents listOfCotinents = await GetFullListOfContinents(languageId); ListOfCountriesViewModels listOfCountriesViewModel = _skyscannerMapper.MapListOfContinentsToListOfCountiesViewModel(listOfCotinents); return(listOfCountriesViewModel); }
public async Task <ListOfCountriesViewModels> GetListOfCountries(string languageId = "en-gb") { ListOfContinents listOfCotinents = await FileHelper.GetDataAsync <ListOfContinents>(FileName.PARENT_FOLDER, FileName.LIST_CONTINENTS); ListOfCountriesViewModels listOfCountriesViewModel = _skyscannerMapper.MapListOfContinentsToListOfCountiesViewModel(listOfCotinents); return(listOfCountriesViewModel); }