Exemplo n.º 1
0
        public async Task <string> GetForecastLocationName(SimplyWeatherLocation location)
        {
            CitiesInCircle citiesInCircle = await _weatherApi.GetLocationName(location);

            if (citiesInCircle != null && citiesInCircle.Cities?.Count > 0)
            {
                return(citiesInCircle.Cities.FirstOrDefault().CityName);
            }

            return("Unknown");
        }