public void DelAuthor(int id, Book book) { int count = listOfAuthors.Count(); foreach (var item in listOfAuthors) { if (id == item.id) { listOfAuthors.Remove(item); book.DeleteBookOfAuthor(id); break; } } }
public void DelAuthor(int id, Book book) { int count = listOfAuthors.Count(); foreach (var item in listOfAuthors) { if (id == item.id) { listOfAuthors.Remove(item); book.DeleteBookOfAuthor(id); break; } } }