public override ActionResult Execute(IEnumerable<Product> products, object config, CommerceInstance instance) { var service = new ProductService(instance); foreach (var product in products) { service.Unpublish(product); } return null; }
public ProductController( SettingService settingService, ProductService productService, ProductTypeService productTypeService, BrandService brandService, CategoryService categoryService) { _settingService = settingService; _productService = productService; _productTypeService = productTypeService; _brandService = brandService; _categoryService = categoryService; }
public AccessoryController(ProductService productService) { _productService = productService; }