public bool Update(Booking item) { if (item == null) { throw new ArgumentNullException("item"); } if (BookingDBManager.Update(item) == 0) { return(false); } else { return(true); } }
public Booking AddBooking(Booking item) { if (item == null) { throw new ArgumentNullException("item"); } if (BookingDBManager.AddBooking(item) == 0) { return(null); } else { return(item); } }
public Booking GetById(int id) { return(BookingDBManager.GetBookingById(id)); }
public IEnumerable <Booking> GetAll() { return(BookingDBManager.GetAllBookings().Cast <Booking>()); }