public void Delete(int id) { List <AuthorInBook> aBook = _authorInBookRepository.GetBook(id).ToList(); if (aBook != null) { _authorInBookRepository.Delete(aBook); } }
public void Delete(int id) { List <AuthorInBook> author = _authorInBookRepository.GetAuthor(id).ToList(); if (author != null) { _authorInBookRepository.Delete(author); } }