public ActionResult Forecast() { ViewBag.ParkName = Session[Session_ParkName]; if ((string)Session[Session_TemperatureUnit] == "Farenheit") { ViewBag.TemperatureUnitSwitch = "Celsius"; } else if ((string)Session[Session_TemperatureUnit] == "Celsius") { ViewBag.TemperatureUnitSwitch = "Farenheit"; } else { ViewBag.TemperatureUnitSwitch = "Celsius"; } string parkCode = (string)Session[Session_ParkCode]; List <WeatherModel> forecasts = weatherDAL.GetForecasts(parkCode); foreach (var forecast in forecasts) { forecast.TempatureUnit = (string)Session[Session_TemperatureUnit]; } return(View("Forecast", forecasts)); }