Exemple #1
0
        public async Task <ActionResult> WeatherForecast(string latitude, string longitude)
        {
            IEnumerable <WeatherForecast> weatherForecasts = await weatherForecastService.GetForecastByCity(latitude, longitude);

            _logger.LogInformation("ForecastWeather For: " + latitude + "," + longitude + weatherForecasts);
            return(Ok(weatherForecasts));
        }