Beispiel #1
0
        public ConfirmationResponse Execute(DeleteCommentRequest request)
        {
            request.ThrowExceptionIfInvalid();

            var task = _workTaskRepository.Read(request.WorkTaskId);

            _workTaskRepository.DeleteComment(task.Id, request.CommentId);

            return(new ConfirmationResponse("Comment deleted successfully.")
            {
                Id = task.Id,
            });
        }