//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 HotArticleList(int pageSize) { UCHome_TopBLL topbll = new UCHome_TopBLL(); var list = topbll.GetArticleHitsTop(10); 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)); }