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