public ActionResult _RightRaiders() { //当前月份排行榜最高的十条数据 ViewData["CurrentMonthTopTen"] = UserRaidersBll.GetNewestRaiders(); //右侧数据 var otherController = DependencyResolver.Current.GetService <NewsInfoController>(); ViewData["ViewTopNews"] = NewsBll.GetAllPageViewTopNews(); ViewBag.NewsetGameDemo = GameDemoBll.GetNewestGameDemo(); return(PartialView("_RightRaiders")); }
public ActionResult _RightNews() { //---------------资讯排行--------------------- ViewData["ViewTopNews"] = NewsBll.GetAllPageViewTopNews(); //---------------精彩图文------------------------ ViewBag.WonderfulSeeNews = WonderfulTxtImgBll.LoadEntities(n => true).OrderByDescending(n => n.InTime) .Take(4).AsNoTracking().ToList(); //----------------最赞攻略------------------------ ViewBag.NewestRaiders = UserRaidersBll.GetMostGreatRaiders(); //----------------最新福利-------------- ViewBag.NewsetGameDemo = GameDemoBll.GetNewestGameDemo(); return(PartialView("_RightNews")); }