class AssessmentServiceImpl implements AssessmentService {

    @Override
    public ServiceResult<Void> rejectInvitation(Long assessmentId, AssessmentRejectOutcomeValue reason, String comment) {
        AssessmentRejectOutcomeResource assessmentRejectOutcomeResource = new AssessmentRejectOutcomeResource();
        assessmentRejectOutcomeResource.setRejectReason(reason);
        assessmentRejectOutcomeResource.setRejectComment(comment);

        return assessmentRestService.rejectInvitation(assessmentId, assessmentRejectOutcomeResource).toServiceResult();
    }

}