private object GetPlatformList() { PlatformApp platformApp = new PlatformApp(); var data = platformApp.GetList(); Dictionary <string, object> dictionary = new Dictionary <string, object>(); foreach (PlatformEntity item in data) { var fieldItem = new { encode = item.PlatformCode, fullname = item.PlatformEnName }; dictionary.Add(item.F_Id, fieldItem); } return(dictionary); }