class ReviewServiceImpl implements ReviewService {

    @Override
    public ServiceResult<Void> rejectReview(long assessmentReviewId,
                                            ReviewRejectOutcomeResource assessmentReviewRejectOutcome) {
        return findAssessmentReview(assessmentReviewId)
                .andOnSuccess(
                        r -> rejectAssessmentReview(r, reviewRejectOutcomeMapper.mapToDomain(assessmentReviewRejectOutcome)));
    }

}