public bool RemovePet(Pet pet) { bool removed = false; if (Pets.Contains(pet)) { Pets.Remove(pet); removed = true; } return(removed); }
public bool AddPet(Pet pet) { bool added = false; if (!Pets.Contains(pet)) { Pets.Add(pet); added = true; } return(added); }