Esempio n. 1
0
        public JsonResult pagedetail(int id)
        {
            var aboutEntity = ArticleBLL.Read(id);

            ArticleBLL.ChangeArticleStatus(id, "ViewCount", aboutEntity.ViewCount);
            return(Json(new { my = aboutEntity }, JsonRequestBehavior.AllowGet));
        }
Esempio n. 2
0
        public JsonResult deteils(int id)
        {
            //var aboutEntity = ArticleBLL.SearchList(1, 1, new ArticleSearchInfo { Id = "id" }, ref count);
            var aboutEntity = ArticleBLL.Read(id);

            ArticleBLL.ChangeArticleStatus(id, "ViewCount", aboutEntity.ViewCount);
            aboutEntity.AddCol3 = aboutEntity.RealDate.ToString("yyyy-MM-dd");
            return(Json(new { my = aboutEntity }, JsonRequestBehavior.AllowGet));
        }