public Dictionary <ActiveDirectoryEmployee, AppointmentPriority> getAllActiveTechniciansWithAppointment() { Dictionary <ActiveDirectoryEmployee, AppointmentPriority> activeTechnicians = new Dictionary <ActiveDirectoryEmployee, AppointmentPriority>(); ActiveDirectoryEmployee ADTechnician = new ActiveDirectoryEmployee(); AppointmentList appointmentPriority = new AppointmentList(); List <AppointmentPriority> appointmentPriorityList = appointmentPriority.getAllActiveAppointments(); foreach (AppointmentPriority appointment in appointmentPriorityList) { ADTechnician = ADTechnician.getSpecificTechnician(appointment.TechnicianGuid); activeTechnicians.Add(ADTechnician, appointment); } return(activeTechnicians); }