Dictionary <string, string> SyncGlobalExRatesIn(string countryShortName, CountryConfig.SystemDataTable systemTable) { Dictionary <string, string> diffRates = new Dictionary <string, string>(); ExchangeRatesConfigFacade excf = EM_AppContext.Instance.GetExchangeRatesConfigFacade(false); List <ExchangeRatesConfig.ExchangeRatesRow> globalExRates = (excf != null) ? excf.GetExchangeRates(countryShortName) : new List <ExchangeRatesConfig.ExchangeRatesRow>(); // List<ExchangeRatesConfig.ExchangeRatesRow> globalExRates = new List<ExchangeRatesConfig.ExchangeRatesRow>(); if (globalExRates.Count == 0) { return(diffRates); } foreach (CountryConfig.SystemRow systemRow in systemTable.Rows) { string globalExRate = DEFAULT_EXCHANGE_RATE; // default value for missing exchange rates foreach (ExchangeRatesConfig.ExchangeRatesRow ger in globalExRates) { List <string> vF = ExchangeRate.ValidForToList(ger.ValidFor); if (vF.Contains(systemRow.Name.ToLower())) { globalExRate = ExchangeRate.DefaultRate(ger).ToString(); break; } } diffRates.Add(systemRow.Name.ToLower(), globalExRate); } return(diffRates); }