Exemplo n.º 1
0
        public async Task <IActionResult> Get([FromRoute] string id)
        {
            var forecast = await _weatherClient.GetForecastAsync(id);

            _logger.LogInformation($"Returning {forecast.Length} days of forecast for location '{id}'");
            return(Ok(forecast));
        }