Esempio n. 1
0
 public void TableBooking(TableBooking table)
 {
     db.Insert(table);
 }
Esempio n. 2
0
 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);
     }
 }