public string GetPriceString(decimal?price, string culture) { if (price.HasValue) { return(SelectedCurrency.PriceAsString(price.Value, culture)); } return(string.Empty); }
public string GetPriceString(decimal?price) { if (price.HasValue) { return(SelectedCurrency.PriceAsString(price.Value, _workContextAccessor.GetContext().CurrentCulture )); } return(string.Empty); }