コード例 #1
0
 public IList<Patient> GetPatientsByPhysician(Physician physician)
 {
     return _db.tblPatients.Where(p => p.tblPhysician.PrescriberID == physician.PrescriberId && p.Active == true).Select(p => new Patient{Active = true, FirstName = p.PatientFirstName, LastName = p.PatientLastName, PatientId = p.PatientID, FullName = p.PatientLastName + ", " + p.PatientFirstName}).ToList();
 }
コード例 #2
0
 public IList<Patient> GetPatientByPhysican(Physician physician)
 {
     return _patientRepository.GetPatientsByPhysician(physician);
 }