public void ExecuteAction() { var id = Ask.CommentId(); var comment = _commentRepository.GetById(id); Write.Comment(comment); }
public void ExecuteAction() { var id = Ask.CommentId(); _commentCommandHandler.Handle(new DeleteComment { Id = id }); var comments = _commentQueryRepository.GetAll(id); Write.Comments(comments); }