public ProductsController(ShopDbContext context,
                           IDistributedCache cache,
                           CartUseCaseFactory factory)
 {
     _context = context;
     _cache   = cache;
     _useCase = factory.Get();
 }
Example #2
0
 public AccountController(ShopDbContext context,
                          CartUseCaseFactory factory)
 {
     _context = context;
     _useCase = factory.Get();
 }
Example #3
0
 public HomeController(CartUseCaseFactory factory)
 {
     _useCase = factory.Get();
 }