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

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