Exemplo n.º 1
0
        //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));
        }
Exemplo n.º 2
0
        public ActionResult HotArticleList(int pageSize)
        {
            UCHome_TopBLL topbll = new UCHome_TopBLL();
            var           list   = topbll.GetArticleHitsTop(10);

            return(PartialView("HotArticle", list));
        }
Exemplo n.º 3
0
        public ActionResult HotArticle(string xzqhm, int pageSize)
        {
            UCHome_TopBLL topbll = new UCHome_TopBLL();
            var           list   = topbll.GetArticleHitsTop(xzqhm, 5);

            return(PartialView("HotArticle", list));
        }