public AddComment ( Feedback comment ) : void | ||
comment | Feedback | |
return | void |
public void AddComment(Feedback comment)
{
var commentAdding = new CommentAddingEventArgs(this, comment);
CommentAdding.Raise(commentAdding);
if (commentAdding.Cancel)
return;
postRepository.SaveComment(comment);
var commentAdded = new CommentAddedEventArgs(this, comment);
CommentAdded.Raise(commentAdded);
}