Exemplo n.º 1
0
 public ProductsController(IProductService productService, IShopCategoryService shopCategoryService, ITagService tagService, IBrandService brandService, IProductShopCategoryService productShopCategoryService, IProductTagService productTagService, IProductMediaService productMediaService, IProductAttributeService productAttributeService, IFeatureService featureService, IFeatureAttributeService featureAttributeService, IShopCategoryFeatureService shopCategoryFeatureService)
 {
     _productService             = productService ?? throw new ArgumentNullException(nameof(productService));
     _shopCategoryService        = shopCategoryService ?? throw new ArgumentNullException(nameof(shopCategoryService));
     _tagService                 = tagService ?? throw new ArgumentNullException(nameof(tagService));
     _brandService               = brandService ?? throw new ArgumentNullException(nameof(brandService));
     _productShopCategoryService = productShopCategoryService ?? throw new ArgumentNullException(nameof(productShopCategoryService));
     _productTagService          = productTagService ?? throw new ArgumentNullException(nameof(productTagService));
     _productMediaService        = productMediaService ?? throw new ArgumentNullException(nameof(productMediaService));
     _productAttributeService    = productAttributeService ?? throw new ArgumentNullException(nameof(productAttributeService));
     _featureService             = featureService ?? throw new ArgumentNullException(nameof(featureService));
     _featureAttributeService    = featureAttributeService ?? throw new ArgumentNullException(nameof(featureAttributeService));
     _shopCategoryFeatureService = shopCategoryFeatureService ?? throw new ArgumentNullException(nameof(shopCategoryFeatureService));
 }
Exemplo n.º 2
0
 public ProductMediaController(IProductMediaService productMediaService, ILoggerManager loggerManager, IMapper mapper)
 {
     _productMediaService = productMediaService;
     _loggerManager       = loggerManager;
     _mapper = mapper;
 }
Exemplo n.º 3
0
 public MediaService(IProductMediaService productMediaService)
 {
     _productMediaService = productMediaService;
 }