Example #1
0
 public void Delete()
 {
     if (KeywordReservation != null)
     {
         ReservationService.DeleteKeywordReservation(KeywordReservation);
     }
     else if (SeriesReservation != null)
     {
         ReservationService.DeleteSeriesReservation(SeriesReservation);
     }
     else if (SlotReservation != null)
     {
         ReservationService.DeleteSlotReservation(SlotReservation);
     }
     else if (SlotReservation2 != null)
     {
         ReservationService.DeleteSlotReservation2(SlotReservation2);
     }
     else if (TimeReservation != null)
     {
         ReservationService.DeleteTimeReservation(TimeReservation);
     }
     else
     {
         throw new NotSupportedException();
     }
 }