public bool DeleteReviewer(Reviewer reviewer)
 {
     _bookDbContext.Remove(reviewer);
     return(Save());
 }
Example #2
0
 public bool DeleteCountry(Country country)
 {
     _countryContext.Remove(country);
     return(Save());
 }
 public bool DeleteBook(Book book)
 {
     _bookDbContext.Remove(book);
     return(Save());
 }
 public bool DeleteReview(Review review)
 {
     _reviewContext.Remove(review);
     return(Save());
 }
Example #5
0
 public bool DeleteCategory(Category category)
 {
     _categoryContext.Remove(category);
     return(Save());
 }
 public bool DeleteAuthor(Author author)
 {
     _authorContext.Remove(author);
     return(Save());
 }
Example #7
0
 public bool DeleteCountry(Country country)
 {
     _countryContext.Remove(country);
     // return the boolean from the Save method to check if the changes were successful
     return(Save());
 }