public static Price CalculatePrice(this IProductComp content) { return(content.AsVendrProduct()?.CalculatePrice()); }
public static Price CalculatePrice(this IProductComp variant, IProductComp parent) { return(variant.AsVendrProduct(parent)?.CalculatePrice()); }