// GET: Home/Detail public ActionResult Detail(string parkCode, string scale) { if (scale == null) { scale = "true"; } else { Session["temp"] = scale; Session["button"] = scale; } ParkDetailViewModel model = new ParkDetailViewModel(); List <Weather> forecast = _weatherDAL.GetFiveDayForecast(parkCode); Park park = _parkdal.GetParkByCode(parkCode); model.PopulateParkProperties(park); model.PopulateForecast(forecast); model.IsFahrenheit = Convert.ToBoolean(Session["temp"]); return(View("Detail", model)); }