Beispiel #1
0
 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;
 }
Beispiel #2
0
        public bool Insert( string CommentTypeName)
        {
            CommentTypeDAC commenttypeComponent = new CommentTypeDAC();
            int CommentTypeId = 0;

            return commenttypeComponent.InsertNewCommentType( ref CommentTypeId,  CommentTypeName);
        }