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