public int getID(int month, int year, string locationName) { locationControl = new LocationControl(); attendance = new Attendance(); attendanceDB = new AttendanceDB(); int locationID = locationControl.getID(locationName); attendance.setMonth(month); attendance.setYear(year); attendance.setLocationID(locationID); attendanceDB.selectID(attendance); return(attendance.getID()); }