Beispiel #1
0
        // POST: Admin/Restaurant/RemoveMenuItem/5
        public ActionResult RemoveMenuItem(int?id)
        {
            int restaurantId = Session["RestaurantId"] != null ? (int)Session["RestaurantId"] : -1;

            if (id != null && restaurantId != -1)
            {
                _restaurantFacade.RemoveMenuItemFromRestaurant(restaurantId, (int)id);
            }
            return(RedirectToAction("Details", new { id = restaurantId }));
        }