Exemple #1
0
 public void DeleteBookEvent(BookEvent bookEvent)
 {
     if (!DataContext.BookEvents.Contains(bookEvent))
     {
         throw new KeyNotFoundException("BookEvent does not exist.");
     }
     DataContext.BookEvents.Remove(bookEvent);
 }
Exemple #2
0
 public void AddEvent(BookEvent bookEvent)
 {
     DataContext.BookEvents.Add(bookEvent);
 }