Example #1
0
 public void UpdateBook(Books book)
 {
     _context.Books.Update(book);
     _context.SaveChanges();
 }
Example #2
0
 public void DeleteBook(Books book)
 {
     _context.Books.Remove(book);
     _context.SaveChanges();
 }
Example #3
0
 public void AddBook(Books book)
 {
     _context.Books.Add(book);
     _context.SaveChanges();
 }