public BooksController(VBSContext context) { _context = context; if (_context.BookItems.Count() == 0) { // Populates a initial list of books CommonOperations.AddBooks(_context); } }
public BooksController(VBSContext context) { _context = context; if (_context.BookItems.Count() == 0) { // Populates a initial list of books CommonOperations.AddBooks(_context); } }