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