コード例 #1
0
 public string GetPriceString(decimal?price, string culture)
 {
     if (price.HasValue)
     {
         return(SelectedCurrency.PriceAsString(price.Value, culture));
     }
     return(string.Empty);
 }
コード例 #2
0
 public string GetPriceString(decimal?price)
 {
     if (price.HasValue)
     {
         return(SelectedCurrency.PriceAsString(price.Value,
                                               _workContextAccessor.GetContext().CurrentCulture
                                               ));
     }
     return(string.Empty);
 }