public bool Insert(CommentType commenttype) { int autonumber = 0; CommentTypeDAC commenttypeComponent = new CommentTypeDAC(); bool endedSuccessfuly = commenttypeComponent.InsertNewCommentType( ref autonumber, commenttype.CommentTypeName); if(endedSuccessfuly) { commenttype.CommentTypeId = autonumber; } return endedSuccessfuly; }
public bool Insert( string CommentTypeName) { CommentTypeDAC commenttypeComponent = new CommentTypeDAC(); int CommentTypeId = 0; return commenttypeComponent.InsertNewCommentType( ref CommentTypeId, CommentTypeName); }