// GET: Park public ActionResult Detail(string id) { Park p = dal.GetPark(id); List <Weather> w = dal.GetWeather(id); PW pw = new PW(p, w); return(View("Detail", pw)); }
public ActionResult Detail(string id) { { ParkModel park = dal.GetPark(id); park.Weather = dal.GetWeather(id); return(View("Detail", park)); } }