public List<FamilyHistoryDO> GetFamilyHistory(int patientId) { DataTable dt = _objPatientDAL.GetFamilyHistory(patientId); List<FamilyHistoryDO> fh = new List<FamilyHistoryDO>(); for (int i = 0; i < dt.Rows.Count; i++) { FamilyHistoryDO p = new FamilyHistoryDO(); p.FamilyHistoryId = Convert.ToInt32(dt.Rows[i]["FamilyHistoryId"].ToString()); p.PatientId = Convert.ToInt32(dt.Rows[i]["PatientId"].ToString()); fh.Add(p); } return fh; }
public List <FamilyHistoryDO> GetFamilyHistory(int patientId) { DataTable dt = _objPatientDAL.GetFamilyHistory(patientId); List <FamilyHistoryDO> fh = new List <FamilyHistoryDO>(); for (int i = 0; i < dt.Rows.Count; i++) { FamilyHistoryDO p = new FamilyHistoryDO(); p.FamilyHistoryId = Convert.ToInt32(dt.Rows[i]["FamilyHistoryId"].ToString()); p.PatientId = Convert.ToInt32(dt.Rows[i]["PatientId"].ToString()); fh.Add(p); } return(fh); }