Example #1
0
        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
            }));
        }
Example #2
0
        public ActionResult Patients()
        {
            IEnumerable <Patient> patients = _patientManagementService.AllPatients();

            return(View(patients));
        }