class InterviewAssignmentServiceImpl implements InterviewAssignmentService {

    @Override
    @Transactional(readOnly = true)
    public ServiceResult<Boolean> isApplicationAssigned(long applicationId) {
        return serviceSuccess(interviewAssignmentRepository.existsByTargetIdAndActivityStateIn(applicationId,
                asList(AWAITING_FEEDBACK_RESPONSE,
                        SUBMITTED_FEEDBACK_RESPONSE)));
    }

}