Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
        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);
        }