Example #1
0
        public bool RemovePet(Pet pet)
        {
            bool removed = false;

            if (Pets.Contains(pet))
            {
                Pets.Remove(pet);
                removed = true;
            }
            return(removed);
        }
Example #2
0
        public bool AddPet(Pet pet)
        {
            bool added = false;

            if (!Pets.Contains(pet))
            {
                Pets.Add(pet);
                added = true;
            }
            return(added);
        }