Ejemplo n.º 1
0
 /// <summary>
 /// Attempt to format the currency based on the browser's locale, but if that currency
 /// is not in the database, then fallback to current thread's culture.
 /// </summary>
 /// <param name="amount">the amount to be formatted</param>
 /// <param name="currencyCode">currency code which will be used to find the
 /// effective culture</param>
 /// <returns>Formatted currency in String</returns>
 public static string FormatCurrency(decimal amount, string currencyCode)
 {
     return(CurrencyService.FormatCurrency(amount, currencyCode));
 }