@Override public boolean isParticipant(int eventID, int userID) throws NotFoundException { Event e = eventDAO.findAndRefresh(eventID); if (e == null) throw new NotFoundException(); return e.isParticipant(userID); }
public Event find(int eventID) { return eventDAO.findAndRefresh(eventID); }