// get infomation of patient private Patient GetPatientInfomation(long id) { Access access = new Access(); ConvertList<Patient> PatientInfo = new ConvertList<Patient>(); PatientInfo.Table = access.getPatientDetail_SearchById(Convert.ToInt64(id)); PatientInfo.toList(); return (Patient)PatientInfo.list[0]; }