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;
        }
示例#2
0
 public ProductController(
         SettingService settingService,
         ProductService productService,
         ProductTypeService productTypeService,
         BrandService brandService,
         CategoryService categoryService)
 {
     _settingService = settingService;
     _productService = productService;
     _productTypeService = productTypeService;
     _brandService = brandService;
     _categoryService = categoryService;
 }
示例#3
0
 public AccessoryController(ProductService productService)
 {
     _productService = productService;
 }