public static List <WeatherDbItem> WeatherResponseToWeatherDbItems(WeathersResponse weathersResponse, int countryId) { return(weathersResponse.list.Select(x => new WeatherDbItem(x, countryId)).ToList()); }
public static CountryDbItem WeatherResponseToCountryDbItem(WeathersResponse weathersResponse) { return(new CountryDbItem(weathersResponse.City)); }