Esempio n. 1
0
        public ActionResult SelectRestaurant(int restaurantid)
        {
            restaurantdb   database   = new restaurantdb();
            Restaurantdata restaurant = database.restaurant(restaurantid);

            return(View(restaurant));
        }
Esempio n. 2
0
        public ActionResult Sortbyrating()
        {
            restaurantdb          database    = new restaurantdb();
            int                   locationid  = int.Parse(Session["locationid"].ToString());
            List <Restaurantdata> restaurants = database.sortrating(locationid);

            return(View(restaurants));
        }