Exemple #1
0
        public static string GetFlag(this CurrencyFiat currency)
        {
            var currencyCode = CountryList.GetAll().FirstOrDefault(x => x.Currency.Code == currency.Code);

            if (currencyCode == null)
            {
                return("");
                // throw new CurrencyCodeException(currency.Code);
            }
            return(currency.Code != "EUR" ? currencyCode.CodeIso3.Code : "eun");
        }