public ActionResult GetNewsData() { try { DataTable topnewsdatadt = bll.GetNewsIndexTopData(); //顶部热门推荐 DataTable newsnewdatadt = bll.GetNewsIndexDataList(); //最新 DataTable newggdt = bll.GetNews(1, 4, 7); //首页平台公告新闻数据 DataTable bzphdt = bll.GetNewsIndexDataListOrderByHitAndTime(); //本周排行 DataTable rdtjdt = bll.GetNewsIndexDataListByHot(); //热点推荐 List <News> topdata = Comm.ToDataList <News>(topnewsdatadt); List <News> newdata = Comm.ToDataList <News>(newsnewdatadt); List <News> ggdata = Comm.ToDataList <News>(newggdt); List <News> bzphdata = Comm.ToDataList <News>(bzphdt); List <News> rdtjdata = Comm.ToDataList <News>(rdtjdt); var returndata = new { toplist = topdata, newlist = newdata, gglist = ggdata, bzphlist = bzphdata, rdtjlist = rdtjdata }; return(Json(Common.ToJsonResult("Success", "获取成功", returndata), JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(Common.ToJsonResult("Fail", "获取失败", ex.Message), JsonRequestBehavior.AllowGet)); } }