@Override public void removeClub(int clubNo) { // List<Member> memberList = memberDao.readMemberByGroup(clubNo, 2); for (Member member : memberList) { memberDao.deleteMember(member); } clubDao.deleteClub(clubNo); }
@Override public void withdrawalClub(int clubNo, String email) { // Club club = clubDao.readClub(clubNo); if (club == null) { throw NamooExceptionFactory.createRuntime("클럽이 존재하지 않습니다."); } Member member = new Member(email, clubNo, 2); memberDao.deleteMember(member); }