public void BoatBooking(BoatBooking boat) { db.Insert(boat); }
public JsonResult BoatBooking(BoatBooking boat) { try { sc.BoatBooking(boat); 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); } }