Beispiel #1
0
        }//add vaccination where pet number isnt specified (for a new pet)

        public e Insert(DateTime expirationDate, int vaccinationNum, int petNum, bool vaccinationChecked)
        {
            e             errCode = e.success;
            VaccinationDB vaccDB  = new VaccinationDB();

            if (vaccDB.Add(expirationDate, vaccinationNum, petNum, vaccinationChecked ? 'Y' : 'N') != 0)
            {
                errCode = e.insertFail;
            }

            return(errCode);
        }
Beispiel #2
0
        public e Insert(DateTime expirationDate, int vaccinationNum, bool vaccinationChecked)
        {
            e             errCode = e.success;
            VaccinationDB vaccDB  = new VaccinationDB();

            if (vaccDB.Add(expirationDate, vaccinationNum, vaccinationChecked ? 'Y' : 'N') != 0)
            {
                errCode = e.insertFail;
            }

            return(errCode);
        }//add vaccination where pet number isnt specified (for a new pet)