public ActionResult AddAppointment() { var appointment = new Appointment(); var repo = new AppointmentRepository(); appointment.Staff = repo.GetAllStaff(); appointment.AppointmentTimes = repo.GetAllAppointments(); return(View(appointment)); }