Exemple #1
0
        private object GetProfileCounty()
        {
            ProfileCountyApp countyApp = new ProfileCountyApp();
            var data = countyApp.GetList();
            Dictionary <string, object> dictionary = new Dictionary <string, object>();

            foreach (ProfileCountyEntity item in data)
            {
                var fieldItem = new
                {
                    encode   = item.F_Id,
                    fullname = item.CountyName
                };
                dictionary.Add(item.F_Id, fieldItem);
            }
            return(dictionary);
        }