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)); }
public FeatureAttributesController(IFeatureAttributeService featureAttributeService, IFeatureService featureService) { _featureAttributeService = featureAttributeService ?? throw new ArgumentNullException(nameof(featureAttributeService)); _featureService = featureService ?? throw new ArgumentNullException(nameof(featureService)); }