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