public static Int32 Save(string CURRENT_USER, Int32 CURRENT_REGISTRY_ID, PATIENT objSave) { Int32 objReturn = 0; PATIENTDB objDB = new PATIENTDB(); objReturn = objDB.Save(CURRENT_USER, CURRENT_REGISTRY_ID, objSave); return(objReturn); }
public static Int32 SaveComplete(string CURRENT_USER, Int32 CURRENT_REGISTRY_ID, PATIENT objSave) { Int32 objReturn = 0; PATIENTDB objDB = new PATIENTDB(); objReturn = objDB.Save(CURRENT_USER, CURRENT_REGISTRY_ID, objSave); if (objSave.SPATIENT != null) { SPATIENTDB sDB = new SPATIENTDB(); objSave.SPATIENT.PK_ID = sDB.Save(CURRENT_USER, CURRENT_REGISTRY_ID, objSave.SPATIENT); } return(objReturn); }