public bool Update(Reservation item)
 {
     Reservation storedItem = Get(item.ReservationId);
     if (storedItem != null)
     {
         storedItem.ClientName = item.ClientName;
         storedItem.Location = item.Location;
         return true;
     }
     else
     {
         return false;
     }
 }
Beispiel #2
0
 public bool UpdateReservation(Reservation item)
 {
     return repo.Update(item);
 }
Beispiel #3
0
 public Reservation CreateReservation(Reservation item)
 {
     return repo.Add(item);
 }
 public Reservation Add(Reservation item)
 {
     item.ReservationId = data.Count + 1;
     data.Add(item);
     return item;
 }