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

            return(View(restaurant));
        }
Exemplo 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));
        }