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(); }
public IList<Patient> GetPatientByPhysican(Physician physician) { return _patientRepository.GetPatientsByPhysician(physician); }