Пример #1
0
        public DataSet listAllVaccinations()
        {
            VaccinationDB vaccDB = new VaccinationDB();
            DataSet       vals   = vaccDB.listVaccinationsDB();

            return(vals);
        }
Пример #2
0
        public static List <PetVaccination> listVaccinations(int petNum)
        {
            VaccinationDB         vaccDB   = new VaccinationDB();
            List <PetVaccination> vaccList = new List <PetVaccination>();

            foreach (DataRow row in vaccDB.listVaccinationsDB(petNum).Tables["hvk_vaccination"].Rows)
            {
                vaccList.Add(fillVaccination(row));
            }
            return(vaccList);
        }