public OrderRepository(UsedGoodsDbContext dbContext, ILogger <ItemRepository> logger, IItemRepository repo) { _dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); Repo = repo ?? throw new ArgumentNullException(nameof(repo)); }
public PersonRepository(UsedGoodsDbContext dbContext, ILogger <ItemRepository> logger) { _dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }