public Dictionary<string, string> GetRate() { Dictionary<string, string> items; string path = ConfigurationManager.AppSettings["path"] + ConfigurationManager.AppSettings["access_key"]; if (new Uri(path).IsFile) { var fileObj = new FetchFromFile(path); items = fileObj.FetchRate(); } else { var webObj = new FetchFromWeb(path); items = webObj.FetchRate(); } return items; }
public Dictionary <string, string> GetRate() { Dictionary <string, string> items; string path = ConfigurationManager.AppSettings["path"] + ConfigurationManager.AppSettings["access_key"]; if (new Uri(path).IsFile) { var fileObj = new FetchFromFile(path); items = fileObj.FetchRate(); } else { var webObj = new FetchFromWeb(path); items = webObj.FetchRate(); } return(items); }