Exemple #1
0
 /// <summary>
 /// Comment Deletion.
 /// If the comment exists, it deletes the current comment from 
 /// the database using the comment data access component.
 /// </summary>
 public void delete()
 {
     CommentDAC commentDAC = new CommentDAC();
     commentDAC.deleteComment(this);
 }
Exemple #2
0
 /// <summary>
 /// Comment Update.
 /// Uses the comment data access component to update the register
 /// of the database which holds the current comment data with
 /// the actual information.
 /// </summary>
 public void update()
 {
     CommentDAC commentDAC = new CommentDAC();
     commentDAC.update(this);
 }
Exemple #3
0
 // /////////////////////////////////////////////////////////////////////
 // Methods /////////////////////////////////////////////////////////////
 // /////////////////////////////////////////////////////////////////////
 /// <summary>
 /// Comment Creation.
 /// Uses the comment data access component to insert the current
 /// comment in the database.
 /// </summary>
 public void create()
 {
     CommentDAC commentDAC = new CommentDAC();
     commentDAC.insertComment(this);
 }