public bool UpdateRoom(Room room) { try { DBContext.Entry(room).State = EntityState.Modified; DBContext.SaveChanges(); return(true); } catch { return(false); } }
public bool UpdateBooking(Booking booking) { try { DBContext.Entry(booking).State = EntityState.Modified; DBContext.SaveChanges(); return(true); } catch { return(false); } }
public bool UpdateHotel(Hotel hotel) { try { _DBContext.Entry(hotel).State = EntityState.Modified; _DBContext.SaveChanges(); return(true); } catch { return(false); } }