Beispiel #1
0
        public object GetProfileStreet()
        {
            ProfileStreetApp streetApp = new ProfileStreetApp();
            var data = streetApp.GetList();
            Dictionary <string, object> dictionary = new Dictionary <string, object>();

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