Esempio n. 1
0
 public void CheckReservation()
 {
     ReservationDataSource dataSource = new ReservationDataSource();
     if (dataSource.GetReservationByTravelID(ID) != null)
     {
         throw new TravelHelperException(Error.TRAVEL_IS_ASSIGNED_TO_RESERVATION);
     }
 }
Esempio n. 2
0
 public void Update()
 {
     ReservationDataSource dataSource = new ReservationDataSource();
     dataSource.UpdateReservation(Reservation.GetReservation());
 }
 public ReservationsViewModel()
 {
     _dataSource = new ReservationDataSource();
 }
Esempio n. 4
0
 public void DeleteReservation()
 {
     ReservationDataSource dataSource = new ReservationDataSource();
     dataSource.DeleteReservation(Reservation.GetReservation());
 }