Example #1
0
 public void EventBooking(EventBooking eventbk)
 {
     db.Insert(eventbk);
 }
Example #2
0
 public JsonResult EventBooking(EventBooking ev)
 {
     try
     {
         sc.EventBooking(ev);
         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);
     }
 }