// GET: Detail public ActionResult ParkDetail(string id, string tempChoice) { TempChoiceModel tcm = new TempChoiceModel(); tcm.ParkTempModel = dal.GetParkDetail(id.ToUpper()); tcm.TempChoice = tempChoice; return(View("ParkDetail", tcm)); }
public ActionResult ParkDetail(string parkName) { Park park = parkDAL.GetParkDetail(parkName); if (park == null) { return(HttpNotFound()); } if (Session["isFahrenheit"] == null) { Session["isFahrenheit"] = true; } park.FiveDayForecast = parkDAL.GetFiveDayForecast(park.ParkImage); park.IsFahrenheit = (bool)Session["isFahrenheit"]; return(View("ParkDetail", park)); }
public ActionResult Detail(string id) { if (id == null) { id = "CVNP"; } Session["Weather"] = weatherDAL.Get5DayWeather(id); var degrees = Session["degrees"]; if (degrees == null) { degrees = 0; } Session["degrees"] = degrees; Park park = parkDAL.GetParkDetail(id); park.TempValue = (int)degrees; return(View("Detail", park)); }
public ActionResult Detail(string parkCode) { ParkModel park = dal.GetParkDetail(parkCode); return(View("Detail", park)); }