/// <summary> /// Returns a Table which represent the TableName and TableCount of tables and respecitive records /// which must be deleted manually before deleting the patient record. 0 rows =no restrictions /// </summary> /// <param name="patientId">The PatientId of the patient to check</param> /// <returns>A table containing TableName, TableCount of child table constraints.</returns> public DataTable ValidatePatientDeleteConstraints(int patientId) { PatientDa da = new PatientDa(); DataTable dt = da.ValidatePatientDeletion(patientId).Tables[0]; return(dt); }