public int Insert(CourtBookingSheet saveThis) { try { _db.CourtBookingSheets.InsertOnSubmit(saveThis); _db.SubmitChanges(); return(saveThis.Id); } catch (Exception e) { throw new Exception(e.Message); } }
public int Insert(BookingRecord saveThis) { try { _db.Bookings.InsertOnSubmit(saveThis); _db.SubmitChanges(); return(saveThis.Id); } catch (Exception e) { throw new Exception(e.Message); } }