public static void EditForecast(int forecastID, UserForecast newForecast)
        {
            DB_Forecast forecast = db.DB_Forecast.Find(forecastID);

            forecast.CityID        = newForecast.CityID;
            forecast.ForecastDate  = newForecast.ForecastDate;
            forecast.MinTemp       = newForecast.MinimumTemp;
            forecast.MaxTemp       = newForecast.MaximumTemp;
            forecast.WindSpeed     = newForecast.WindSpeed;
            forecast.Humidity      = newForecast.Humidity;
            forecast.Precipitation = newForecast.Precipitation;

            db.SaveChanges();
        }
        public static void InsertForecast(UserForecast newForecast)
        {
            DB_Forecast dbForecast = new DB_Forecast();

            dbForecast.CityID        = newForecast.CityID;
            dbForecast.ForecastDate  = newForecast.ForecastDate;
            dbForecast.MinTemp       = newForecast.MinimumTemp;
            dbForecast.MaxTemp       = newForecast.MaximumTemp;
            dbForecast.WindSpeed     = newForecast.WindSpeed;
            dbForecast.Humidity      = newForecast.Humidity;
            dbForecast.Precipitation = newForecast.Precipitation;


            db.DB_Forecast.Add(dbForecast);
            db.SaveChanges();
        }