public static int generateNewMeetingID() { int id = 1; while (meetingContext.read(id) != null) { id = rnd.Next(999999999); } return(id); }