/* * 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)); }