Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 3
0
 public bool UpdateHotel(Hotel hotel)
 {
     try {
         _DBContext.Entry(hotel).State = EntityState.Modified;
         _DBContext.SaveChanges();
         return(true);
     } catch {
         return(false);
     }
 }