Created by: Radheshhathwar
Activity
17 Institute institute = instituteRepository.findById(dto.getInstituteId()) 18 .orElseThrow(() -> new EntityNotFoundException("Institute not found")); 19 20 if ("approve".equalsIgnoreCase(dto.getAction())) { 21 institute.setCctvVerified(true); 22 } else if ("reject".equalsIgnoreCase(dto.getAction())) { 23 institute.setCctvVerified(false); 24 } 25 26 institute.setIpAddress(dto.getIpAddress()); 27 institute.setRemarks(dto.getRemarks()); 28 29 instituteRepository.save(institute); 30 } 31 32 public void markNotAllowedForExamCentre(Long instituteId) {
Please register or sign in to reply