public void DeleteProducts(DeleteProductsInput input) { this.PerformDeleteObjects<Product>(input.ProductList, _productRepository, id => { var categorization = _productCategorizationRepository.Single(c => c.Product.Id == id); if (categorization != null) _productCategorizationRepository.Delete(categorization); }); }
public void DeleteProducts(DeleteProductsInput produtList) { _productServiceImp.DeleteProducts(produtList); }