Esempio n. 1
0
 public void AddToDatabase(DbReservationsContext context)
 {
     context.Add <Room>(_room);
     context.SaveChanges();
 }
 public void RemoveFromDatabase(DbReservationsContext context)
 {
     context.Remove <Reservation>(_reservation);
     context.SaveChanges();
 }
 public ReservationValidator(DbReservationsContext context)
 {
     _ctx = context;
 }
 public void SaveChangesToDatabase(DbReservationsContext context)
 {
     context.SaveChanges();
 }