public ActionResult NewAppointment(int doctorId) { List <Patient> allPatients = _patientManagementService.AllPatients(); Doctor doctor = _doctorRepository.GetDoctor(doctorId); ViewBag.ReturnUrl = Url.Action("NewAppointment"); return(View(new AppointmentInputViewModel { Doctor = doctor, DateTime = DateTime.Now.AddDays(3), Patients = allPatients })); }
public ActionResult Patients() { IEnumerable <Patient> patients = _patientManagementService.AllPatients(); return(View(patients)); }