public static UpsellProduct Load(Int32 productId, Int32 childProductId) { UpsellProduct upsellProduct = new UpsellProduct(); if (upsellProduct.Load(productId, childProductId)) { return(upsellProduct); } return(null); }
public static bool Delete(Int32 productId, Int32 childProductId) { UpsellProduct upsellProduct = new UpsellProduct(); if (upsellProduct.Load(productId, childProductId)) { return(upsellProduct.Delete()); } return(false); }