public static IEnumerable <string> GetOrderTypeList() { List <string> orderTypeList = new List <string>(); using (var client = new ConfigClient()) { var dicKeys = new List <string> { "OrderType" }; var result = client.GetDictionariesByType(dicKeys); if (result != null && result.Result != null) { var dictList = result.Result.Select(s => s.Value); foreach (var dict in dictList) { foreach (var item in dict) { if (!orderTypeList.Contains(item.Key)) { orderTypeList.Add(item.Key); } } } } } return(orderTypeList); }