// POST: Admin/Restaurant/ActivateTable/5 public ActionResult ActivateTable(int?id) { int restaurantId = Session["RestaurantId"] != null ? (int)Session["RestaurantId"] : -1; if (id != null && restaurantId != -1) { Table table = _tableFacade.FindById((int)id); table.Active = true; _tableFacade.Update(table); } return(RedirectToAction("Details", new { id = restaurantId })); }