示例#1
0
        public ActionResult Chitiet(int id)
        {
            int            totalPage           = 0;
            IArticle       dbArticle           = ADODAOFactory.Instance().CreateArticleDao();
            List <Article> listNewArticle      = dbArticle.GetListArticleNew(1, 4, out totalPage);
            List <Article> listArticleMostView = dbArticle.GetListArticleMostView(1, 4, out totalPage);

            ArticleDetail article = dbArticle.GetArticleDetail(id);

            List <Article> listArticleByTag = dbArticle.GetArticleByTag(article.Tags, 1, 6, out totalPage);

            ViewBag.listNewArticle      = listNewArticle;
            ViewBag.listArticleMostView = listArticleMostView;
            ViewBag.listArticleByTag    = listArticleByTag;

            return(PartialView(article));
        }