Esempio n. 1
0
 public HomeController(ILogger <HomeController> logger, IProductService productService, IShopCategoryService shopCategoryService, IShopCategoryFeatureService shopCategoryFeatureService)
 {
     _logger                     = logger;
     _productService             = productService ?? throw new ArgumentNullException(nameof(productService));
     _shopCategoryService        = shopCategoryService ?? throw new ArgumentNullException(nameof(shopCategoryService));
     _shopCategoryFeatureService = shopCategoryFeatureService ?? throw new ArgumentNullException(nameof(shopCategoryFeatureService));
 }
Esempio n. 2
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));
 }
 public ShopCategoriesController(IShopCategoryService shopCategoryService, IShopCategoryFeatureService shopCategoryFeatureService)
 {
     _shopCategoryService        = shopCategoryService ?? throw new ArgumentNullException(nameof(shopCategoryService));
     _shopCategoryFeatureService = shopCategoryFeatureService ?? throw new ArgumentNullException(nameof(shopCategoryFeatureService));
 }
Esempio n. 4
0
 public FeaturesController(IFeatureService productFeatureService, IShopCategoryService shopCategoryService, IShopCategoryFeatureService shopCategoryFeatureService)
 {
     _productFeatureService      = productFeatureService ?? throw new ArgumentNullException(nameof(productFeatureService));
     _shopCategoryService        = shopCategoryService ?? throw new ArgumentNullException(nameof(shopCategoryService));
     _shopCategoryFeatureService = shopCategoryFeatureService ?? throw new ArgumentNullException(nameof(shopCategoryFeatureService));
 }