@Override public ClubMember findClubMember(int clubNo, String email) { // Club club = clubDao.readClub(clubNo); if (club == null) { throw NamooClubExceptionFactory.createRuntime("클럽이 존재하지 않습니다."); } return memberDao.readClubMember(clubNo, email); }
@Override public List<Club> findBelongClubs(String email, int comNo) { // List<Club> clubs = clubDao.readAllClubs(comNo); if (clubs == null) return null; List<Club> belongs = new ArrayList<>(); for (Club club : clubs) { if (memberDao.readClubMember(club.getClubNo(), email) != null) { belongs.add(club); } } return belongs; }