/// <summary> /// Initializes a new instance of the <see cref="ProductCategoriesController"/> class. /// </summary> /// <param name="productManagementService">The product categories management service.</param> public ProductCategoriesController(IProductCategoryManagementService productManagementService, IProductCategoryPicturesService categoryPicturesService) { this.productManagementService = productManagementService; this.categoryPicturesService = categoryPicturesService; }
/// <summary> /// Initializes a new instance of the <see cref="ProductCategoriesController"/> class. /// </summary> /// <param name="productCategoryManagementService">Product category management service.</param> /// <param name="productCategoryPicturesService">Product category picture service.</param> public ProductCategoriesController(IProductCategoryManagementService productCategoryManagementService, IProductCategoryPicturesService productCategoryPicturesService) { this.productCategoryManagementService = productCategoryManagementService ?? throw new ArgumentNullException(nameof(productCategoryManagementService)); this.productCategoryPicturesService = productCategoryPicturesService ?? throw new ArgumentNullException(nameof(productCategoryPicturesService)); }