Exemple #1
0
        public async Task <ActionResult> CurrentWeather(string location)
        {
            WeatherForecast weatherForecast = await weatherForecastService.GetCurrentByCity(location);

            _logger.LogInformation("CurrentWeatherForecast For: " + location + JsonConvert.SerializeObject(weatherForecast));
            return(Ok(weatherForecast));
        }