Пример #1
0
        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;
 }