Пример #1
0
 public ProductsController(IProductsRepo productsRepo)
 {
     _prodHandler       = productsRepo.GetProductHandler();
     _prodOptionHandler = productsRepo.GetProductOptionHandler();
     _prodRepo          = productsRepo;
 }
Пример #2
0
 public ProductHandler(IProductsRepo prodRep)
 {
     _prodRepo             = prodRep;
     _productOptionHandler = prodRep.GetProductOptionHandler();
     _dbHandler            = prodRep.GetDbHandler();
 }