implementation of the getAllAttendee method