private static Models.Weather OpenWeatherMapToWeather(Models.OpenWeatherMapDTO.Weather w)
        {
            var weather = new Models.Weather
            {
                CityName             = w.city.name,
                CountryCodeOfTheCity = w.city.country
            };

            foreach (var item in w.list)
            {
                weather.WeatherList.Add(
                    new DailyForecast
                {
                    Icon        = $"{item.weather[0].id}{item.weather[0].icon.ElementAt(2)}.png",
                    Clouds      = item.clouds,
                    Description = item.weather[0].description,
                    Humidity    = item.humidity,
                    Pressure    = item.pressure,
                    WindSpeed   = item.speed,
                    DayTemp     = item.temp.day,
                    MaxTemp     = item.temp.max,
                    MinTemp     = item.temp.min,
                    Time        = TimeStampToDateTime(item.dt)
                });
            }
            return(weather);
        }
        public string WeatherToHTMLString(Models.Weather w)
        {
            if (w == null)
            {
                return("error");
            }
            string resultHTML = String.Empty;

            resultHTML += $"<div class='bot-weather-container'>";
            resultHTML += $"<div class='bot-weather-city'>Weather in {w.CityName}</div>";
            resultHTML += $"<div class='bot-weather-items-container'>";
            foreach (var dailyForecast in w.WeatherList)
            {
                resultHTML += $"<div class='bot-weather-item-container'>";
                resultHTML += $"<div class='bot-weather-date'>{dailyForecast.Time.ToString("m")}</div>";
                resultHTML += $"<div class='bot-weather-row'>";
                resultHTML += $"<div class='bot-weather-icon'> <img src='assets/img/WeatherIcons/{dailyForecast.Icon}'/></div>";
                resultHTML += $"<div class='bot-weather-main-info-container'>";
                resultHTML += $"<div class='bot-weather-description'>{dailyForecast.Description}</div>";

                resultHTML += $"<div class='bot-weather-temperature-container'>";
                resultHTML += $"<div class='bot-weather-column'>";

                resultHTML += $"<div class='bot-weather-temperature-item'><div>Day:</div><div>{dailyForecast.DayTemp}°</div>";
                resultHTML += $"</div>";

                resultHTML += $"<div class='bot-weather-temperature-item'><div>Min:</div><div>{dailyForecast.MinTemp}°</div>";
                resultHTML += $"</div>";

                resultHTML += $"<div class='bot-weather-temperature-item'><div>Max:</div><div>{dailyForecast.MaxTemp}°</div>";
                resultHTML += $"</div>";

                resultHTML += $"</div>";

                resultHTML += $"</div>";
                resultHTML += $"</div>";
                resultHTML += $"</div>";
                resultHTML += $"</div>";
            }
            resultHTML += $"</div>";
            resultHTML += $"</div>";
            return(resultHTML);
        }