protected virtual string GetProductOrVariantListPrice(Orckestra.Overture.ServiceModel.Products.Product product, Variant variant, CultureInfo culture) { if (variant != null) { return(LocalizationProvider.FormatPrice(variant.ListPrice.Value, culture)); } else { return(LocalizationProvider.FormatPrice(product.ListPrice.Value, culture)); } }
protected virtual string GetProductOrVariantListPrice(Orckestra.Overture.ServiceModel.Products.Product product, Variant variant, CultureInfo culture) { return(variant != null ? LocalizationProvider.FormatPrice(variant.ListPrice.Value, CurrencyProvider.GetCurrency()) : LocalizationProvider.FormatPrice(product.ListPrice.Value, CurrencyProvider.GetCurrency())); }