public Hospital getHospital(int id) { Hospital result = null; DataRow row = dataset.Tables["Hospitals"].Rows.Find(id); if (row != null) result = new Hospital(row, this); return result; }
public Hospital getHospitalByName(string name) { Hospital result = null; DataRow[] rows = dataset.Tables["Hospitals"].Select("Name = '" + name + "'"); foreach (DataRow row in rows) { result = new Hospital(row, this); } return result; }