Beispiel #1
0
 public void DeleteAuthor(long id)
 {
     if (BookAuthors.Get().Any(t => t.AuthorId == id))
     {
         throw new InvalidOperationException();
     }
     Authors.Delete(id);
 }
Beispiel #2
0
 public void Delete_Author(Author author)
 {
     Authors = Authors.Delete(author);
 }