public OrdersController( ApplicationDbContext context, IMemoryCache cache, WarehouseStorageFactory warehouseStorageFactory, IOptions <Config> config ) { _context = context; _cache = cache; _config = config.Value; _factory = warehouseStorageFactory; }
public WarehouseController(ApplicationDbContext db, WarehouseStorageFactory factory) { _factory = factory; _context = db; }