Exemple #1
0
        // GET: Comment
        public ActionResult Index(int boardNo)
        {
            List <Comment> commentList  = commentService.ListComment(boardNo);
            var            commentCount = commentService.CountCommentList(boardNo);

            Hashtable ht = new Hashtable();

            ht.Add("commentList", commentList);
            ht.Add("cmtCount", commentCount);

            //return Json(new { commentList = commentList, cmtCount = commentCount }, JsonRequestBehavior.AllowGet);
            return(Json(ht, JsonRequestBehavior.AllowGet));
        }