public bool Insert( string CommentStatusName) { CommentStatusDAC commentstatusComponent = new CommentStatusDAC(); int CommentStatusId = 0; return commentstatusComponent.InsertNewCommentStatus( ref CommentStatusId, CommentStatusName); }
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; }