Ejemplo n.º 1
0
        public async Task <WeatherForecast> Gett1(string city)
        {
            _logger.LogInformation("경고");
            _logger.LogDebug("디버그");
            city = "london";
            var forecast = await client.GetCurrentWeatherAsync(city);

            return(new WeatherForecast
            {
                Summary = forecast.weather[0].description,
                TemperatureC = (int)forecast.main.temp,
                desc1 = forecast.main.temp_min.ToString(),
                Date = DateTimeOffset.FromUnixTimeSeconds(forecast.dt).Date
            });
        }