Esempio n. 1
0
 public ProductCategoryService(IProductCategoryRepository productCategoryRepository, IProductCategoryTranslationRepository productCategoryTranslationRepository,
                               IResourceService <SharedResource> sharedResourceService, IResourceService <GhmWarehouseResource> productResourceService,
                               IProductCategoriesAttributeRepository productCategoriesAttributeRepository, IAttributeRepository attributeRepository,
                               IProductsCategorieRepository productsCategorieRepository)
 {
     _productCategoryRepository            = productCategoryRepository;
     _productCategoryTranslationRepository = productCategoryTranslationRepository;
     _sharedResourceService  = sharedResourceService;
     _productResourceService = productResourceService;
     _productCategoriesAttributeRepository = productCategoriesAttributeRepository;
     _attributeRepository         = attributeRepository;
     _productsCategorieRepository = productsCategorieRepository;
 }
 public ProductCategoryService(ProductDatabaseContext productDatabaseContext, IOptions <ProductSettings> productSettings, IHttpContextAccessor iHttpContextAccessor)
 {
     _productDatabaseContext               = productDatabaseContext;
     _productCategoryRepository            = new ProductCategoryRepository(productDatabaseContext, productSettings, iHttpContextAccessor);
     _productCategoryTranslationRepository = new ProductCategoryTranslationRepository(productDatabaseContext, productSettings, iHttpContextAccessor);
 }