コード例 #1
0
ファイル: ArticleCommentLogic.cs プロジェクト: ramyothman/RBM
 public bool Insert(ArticleComment articlecomment)
 {
     int autonumber = 0;
     ArticleCommentDAC articlecommentComponent = new ArticleCommentDAC();
     bool endedSuccessfuly = articlecommentComponent.InsertNewArticleComment(ref autonumber, articlecomment.ArticleId, articlecomment.ArticleCommentContent, articlecomment.ModifiedDate, articlecomment.PersonId, articlecomment.CommentStatusId);
     if(endedSuccessfuly)
     {
         articlecomment.ArticleCommentId = autonumber;
     }
     return endedSuccessfuly;
 }
コード例 #2
0
ファイル: ArticleCommentLogic.cs プロジェクト: ramyothman/RBM
        public bool Insert(int ArticleId, string ArticleCommentContent, DateTime ModifiedDate, int PersonId, int CommentStatusId)
        {
            ArticleCommentDAC articlecommentComponent = new ArticleCommentDAC();
            int ArticleCommentId = 0;

            return articlecommentComponent.InsertNewArticleComment(ref ArticleCommentId, ArticleId, ArticleCommentContent, ModifiedDate, PersonId, CommentStatusId);
        }