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