示例#1
0
        public ActionResult ViewDetails(int id)
        {
            ViewBag.PatientDetail = _patientRepo.GetPatient(id);
            var pateitnPhysicians = _patientRepo.GetPatientPhysicians(id);

            int[] pIds = pateitnPhysicians.Select(p => p.PhysicianId).ToArray();
            ViewBag.PhysiciansList = _phyRepo.GetPhysicians().Where(p => !pIds.Contains(p.Id)).ToList();
            ViewBag.PPhysicians    = pateitnPhysicians;
            return(View());
        }