public ProductRepository(BorrowContext productContext)
 {
     _context = productContext ?? throw new ArgumentNullException(nameof(productContext));
 }
Beispiel #2
0
 public BorrowsController(BorrowContext context)
 {
     _context = context;
 }
 public BrandRepository(BorrowContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
 public CategoryRepository(BorrowContext context, ILogger <CategoryRepository> logger)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
     _logger  = logger;
 }