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