public void TableBooking(TableBooking table) { db.Insert(table); }
public JsonResult TableBooking(TableBooking table) { try { sc.TableBooking(table); return Json(new { success = true, msg = "Book thành công" }, JsonRequestBehavior.AllowGet); } catch { return Json(new { success = false, msg = "Đã có lỗi xảy ra" }, JsonRequestBehavior.AllowGet); } }