Пример #1
0
        public ActionResult selectlodge(int lodgeid)
        {
            lodgedb   database = new lodgedb();
            lodgedata lodge    = database.lodge(lodgeid);

            return(View(lodge));
        }
Пример #2
0
        // 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));
        }
Пример #3
0
        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));
        }