//게시판 글 리스트
        // GET: Board
        public ActionResult List(int pN, int start)
        {
            Articles          article = new Articles();
            List <ArticlesVO> list    = article.ArticleList(pN);

            ViewBag.Total = list.First().Total;
            ViewBag.pN    = pN;
            ViewBag.start = start;
            ViewBag.end   = start + 9;
            return(View(list));
        }
        //게시판 글 단일 뷰
        public ActionResult Detail(string No, int pN, int start)
        {
            Articles          ar      = new Articles();
            ArticlesVO        article = ar.Detail(No);
            List <ArticlesVO> list    = ar.ArticleList(1);

            ViewBag.Max            = list.First().Total;
            ViewBag.Contents       = article.Contents;
            ViewBag.Subject        = article.Title;
            ViewBag.ViewCount      = article.ViewCount;
            ViewBag.RegistMemberID = article.RegistMemberID;
            ViewBag.RegistDate     = article.RegistDate;
            ViewBag.No             = article.No;
            ViewBag.ArticleIDX     = article.ArticleIDX;
            ViewBag.sessionID      = Session["ID"];

            //댓글

            ArticleComments          ac          = new ArticleComments();
            List <ArticleCommentsVO> CommentList = ac.CommentList(article.ArticleIDX, pN);

            if (CommentList.Count == 0)
            {
                ViewBag.Total = 0;
            }
            else
            {
                ViewBag.Total = CommentList.First().Total;
            }

            ViewBag.ArticleIDX = article.ArticleIDX;
            ViewBag.pN         = pN;
            ViewBag.start      = start;
            ViewBag.end        = start + 9;
            return(View(CommentList));
        }