public void CreateUser(UserModel user) { if (user == null) { throw new ArgumentNullException(nameof(user)); } _context.Add(user); }
public void CreateBook(BookModel book) { if (book == null) { throw new ArgumentNullException(nameof(book)); } _context.Add(book); }