public ActionResult Book_Table(int ID_Table) { ReservationAction.Auto_Cancel(); string phone = (string)Session["member_id"]; if (MemberShipAction.Find_MemberShip_By_Phone(phone).score >= 10) { ReservationAction.Create_Reservation(phone, ID_Table); TableAction.Delete_Table(ID_Table); return(Redirect("~/Home/HomePage")); } return(View()); }
public ActionResult DeleteTable(int ID) { TableAction.Delete_Table(ID); return(Redirect("~/Manager/TableManager")); }