Exemple #1
0
        public bool Insert( string CommentStatusName)
        {
            CommentStatusDAC commentstatusComponent = new CommentStatusDAC();
            int CommentStatusId = 0;

            return commentstatusComponent.InsertNewCommentStatus( ref CommentStatusId,  CommentStatusName);
        }
Exemple #2
0
 public bool Insert(CommentStatus commentstatus)
 {
     int autonumber = 0;
     CommentStatusDAC commentstatusComponent = new CommentStatusDAC();
     bool endedSuccessfuly = commentstatusComponent.InsertNewCommentStatus( ref autonumber,  commentstatus.CommentStatusName);
     if(endedSuccessfuly)
     {
         commentstatus.CommentStatusId = autonumber;
     }
     return endedSuccessfuly;
 }