/// <summary> /// 获取平台列表 /// </summary> /// <param name="businessType"></param> /// <returns></returns> public object GetPlatforms(BusinessType businessType) { var list = pServ.GetList(businessType); var ps = (from p in list orderby p.PlatformId ascending select new { PlatformId = p.PlatformId, PlatformName = p.PlatformName }).ToList(); var platformDic = new Dictionary <string, object>(); platformDic.Add("Platforms", ps); return(platformDic); }