Beispiel #1
0
 /// <summary>
 /// 댓글 하나를 가져온다.
 /// </summary>
 /// <param name="commentNo"></param>
 /// <returns></returns>
 public CommentModel GetComment(int commentNo)
 {
     return(CommentAccess.GetComment(commentNo));
 }
Beispiel #2
0
 /// <summary>
 /// 댓글을 삭제한다.
 /// </summary>
 /// <param name="commentNo"></param>
 /// <returns></returns>
 public int RemoveComment(int commentNo)
 {
     return(CommentAccess.RemoveComment(commentNo));
 }
Beispiel #3
0
 /// <summary>
 /// 댓글리스트를 가져온다.
 /// </summary>
 /// <param name="articleNo"></param>
 /// <returns></returns>
 public CommentBindModel GetCommentList(int articleNo)
 {
     return(CommentAccess.GetCommentList(articleNo));
 }
Beispiel #4
0
        /*
         * public Control LoadCommentControl(object form, int articleNo)
         * {
         *      if( form is Page )
         *      {
         *              UmcBlogBasePage template = (UmcBlogBasePage)((Page)form).LoadControl(CommentConst.PARAM_COMMENT_CONTROL_PATH);
         *
         *              return template;
         *      }
         *      else if( form is UserControl )
         *      {
         *              UmcContentsCommonPage template = (UmcContentsCommonPage)((UserControl)form).LoadControl(CommentConst.PARAM_COMMENT_CONTROL_PATH);
         *
         *              return template;
         *      }
         *
         *      throw new UmcException("Comment 컨트롤을 로드할 수 없습니다");
         * }
         */

        /// <summary>
        /// 댓글 저장
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public int InsertComment(CommentModel model)
        {
            return(CommentAccess.InsertComment(model));
        }
Beispiel #5
0
 /// <summary>
 /// 최신 댓글 리스트를 가져온다.
 /// </summary>
 /// <param name="count">갯수</param>
 /// <returns></returns>
 public CommentBindModel GetRecentCommentList(int count)
 {
     return(CommentAccess.GetRecentCommentList(count));
 }
Beispiel #6
0
 /// <summary>
 /// 댓글을 수정한다.
 /// </summary>
 /// <param name="model"></param>
 public void UpdateComment(CommentModel model)
 {
     CommentAccess.UpdateComment(model);
 }