コード例 #1
0
ファイル: DoctorController.cs プロジェクト: alikaraki/Shafam
        //
        // GET: /Doctor/Patients/
        public ActionResult Patients()
        {
            int doctorId = _identityProvider.GetAuthenticatedUserId();
            IEnumerable <Patient> patients = _patientManagementService.ViewAllPatients(doctorId);

            return(View(patients));
        }
コード例 #2
0
ファイル: LegalController.cs プロジェクト: alikaraki/Shafam
        // Show the patients of a single doctor.
        public ActionResult DoctorPatients(int doctorId)
        {
            Doctor         doctor   = _doctorRepository.GetDoctor(doctorId);
            List <Patient> patients = _patientManagementService.ViewAllPatients(doctorId);

            return(View(new PatientViewModel {
                Doctor = doctor, Patients = patients
            }));
        }