public static string GetDefaultCurrencyCodeFromConfig(string countryCode)
{
string currencyCode = string.Empty;
PublicOrderConfigurationSection opcs = LocalConfigurationHelper.GetLocalConfigurationSection();
CountryItem defaultCountryItem = opcs.CountriesList.Cast<CountryItem>().ToList().Find(x => x.Default);
if (defaultCountryItem == null && !string.IsNullOrEmpty(countryCode))
{
defaultCountryItem = opcs.CountriesList.Cast<CountryItem>().ToList().Find(x => x.Code.EndsWith(countryCode));
}
if (defaultCountryItem != null)
{
currencyCode = defaultCountryItem.Currency;
}
return currencyCode;
}