Exemple #1
0
        /*
         * Transaction: Update a patient in the database
         * Returns true iff the patient exists in the database and
         * it was successfully changed.
         */
        public static bool ChangePatient(Patient changePatient)
        {
            Patient checkPatient = PatientPersistence.GetPatient(changePatient);

            if (checkPatient == null)
            {
                return(false);
            }

            return(PatientPersistence.ChangePatient(changePatient));
        }