public Task Handle(DeleteIdeaCommentCommand message) { var ideaComment = _repository.GetOne <IdeaComment>(message.CommentId); _repository.Delete(ideaComment); return(_bus.RaiseEvent(new IdeaCommentDeletedEvent(_dataMapper.Map <IdeaCommentDto>(ideaComment)))); }
public Task DeleteCommentAsync(string commentId) { var command = new DeleteIdeaCommentCommand(commentId); return(_bus.SendCommand(command)); }