public ActionResult selectlodge(int lodgeid) { lodgedb database = new lodgedb(); lodgedata lodge = database.lodge(lodgeid); return(View(lodge)); }
// GET: lodge public ActionResult Lodge() { lodgedb database = new lodgedb(); int locationid = int.Parse(Session["locationid"].ToString()); List <lodgedata> lodges = database.alllodges(locationid); return(View(lodges)); }
public ActionResult lodgessortrating() { lodgedb database = new lodgedb(); int locationid = int.Parse(Session["locationid"].ToString()); List <lodgedata> lodges = database.sortrating(locationid); //return RedirectToAction("lodgessortprice", "Lodge", lodges); return(View(lodges)); }