public ConfirmationResponse Execute(EditCommentRequest request) { request.ThrowExceptionIfInvalid(); var task = _workTaskRepository.Read(request.WorkTaskId); var comment = _workTaskRepository.ReadComment(task.Id, request.CommentId); comment.Content = request.Content; _workTaskRepository.UpdateComment(comment); return(new ConfirmationResponse("Comment updated successfully.") { Id = task.Id, }); }