public ConfirmationResponse Execute(AddCommentRequest request) { request.ThrowExceptionIfInvalid(); var task = _workTaskRepository.Read(request.WorkTaskId); var comment = new Core.Entities.WorkTask.Comment( _workTaskRepository.GenerateNewIdentity(), request.AuthorId, task.Id, request.Content); _workTaskRepository.AddComment(comment); return(new ConfirmationResponse("Comment added successfully.") { Id = task.Id, }); }