예제 #1
0
        private object GetProfileCityList()
        {
            ProfileCityApp cityApp = new ProfileCityApp();
            var            data    = cityApp.GetList();
            Dictionary <string, object> dictionary = new Dictionary <string, object>();

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