public ActionResult HotArticleList(int pageSize) { UCHome_TopBLL topbll = new UCHome_TopBLL(); var list = topbll.GetArticleHitsTop(10); return(PartialView("HotArticle", list)); }
public ActionResult NewArticle(int pageSize) { UCHome_TopBLL topbll = new UCHome_TopBLL(); var list = topbll.GetArticleNewTop(5); return(PartialView("NewArticle", list)); }
//最新文章 public ActionResult NewArticle(Guid xxid, int pageSize) { UCHome_TopBLL topbll = new UCHome_TopBLL(); var list = topbll.GetArticleNewTop("", xxid.ToString(), 5); return(PartialView("NewArticle", list)); }
//public ActionResult ResourceList(Guid xxid, string learnType, int pageSize) //{ // var list = // _rec.V_ResourceByLearn.Where(c => c.learntype == learnType && c.XXID == xxid) // .OrderByDescending(c => c.CreateTime) // .Take(pageSize).AsEnumerable() // .Select(c => new MyResource(c.id, c.Name.Trim(), c.CreateTime, c.Hits, c.Grade, c.Subject, c.XXMC, c.CreatorName,c.LinkUrl)) // .ToList(); // return PartialView("ResourceList", list); //} //public ActionResult CourseList(Guid xxid, string learnType, int pageSize) //{ // var list = // _rec.V_ResourceByLearn.Where(c => c.learntype == learnType && c.XXID == xxid) // .OrderByDescending(c => c.CreateTime) // .Take(pageSize).AsEnumerable() // .Select(c => new MyResource(c.id, c.Name.Trim(), c.CreateTime, c.Hits, c.Grade, c.Subject, c.XXMC, c.CreatorName,c.LinkUrl)) // .ToList(); // return PartialView("CourseList", list); //} //文章点击数排行 public ActionResult ArticleHitsRank(string xxid, int pageSize) { UCHome_TopBLL topbll = new UCHome_TopBLL(); var list = topbll.GetArticleHitsTop("", xxid, 5); return(PartialView("HotArticle", list)); }
public ActionResult HotArticle(string xzqhm, int pageSize) { UCHome_TopBLL topbll = new UCHome_TopBLL(); var list = topbll.GetArticleHitsTop(xzqhm, 5); return(PartialView("HotArticle", list)); }
public ActionResult GoodStuAndTeaList(string userType, int pageSize) { UCHome_TopBLL topbll = new UCHome_TopBLL(); List <UCHome_Top_Data> list; if (userType.ToLower() == "t") { list = topbll.GetTeaArticlesTop(9); ViewBag.UserType = "t"; } else { list = topbll.GetStuArticlesTop(9); ViewBag.UserType = "s"; } return(PartialView("GoodStuAndTeaList", list)); }