public void ExecuteAction()
        {
            var id      = Ask.CommentId();
            var comment = _commentRepository.GetById(id);

            Write.Comment(comment);
        }
Пример #2
0
        public void ExecuteAction()
        {
            var id = Ask.CommentId();

            _commentCommandHandler.Handle(new DeleteComment {
                Id = id
            });

            var comments = _commentQueryRepository.GetAll(id);

            Write.Comments(comments);
        }