Hello how do i delete the EcomGroupProductRelation when deleting a product? my code:
public void DeleteProduct(string id)
{
var products = new ProductCollection();
var product = _productService.GetProductById(id, null, true) ?? throw new ArgumentNullException("DeleteProduct: productId NotFound");
products.Add(product);
_productService.DeleteProducts(products);
}
this deletes the product/products but not the group product relation..