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)); }
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)); }