//public string AddAnimal(Animal animal) //{ // animalList.Add(animal); // return animal.Name; //} //public string GetAnimal(int i) //{ // foreach (var animal in animalList) // { // i = animalList.IndexOf(animal); // } // return animalList[i].Name; //} public string GreetAnimal(Animal animal) { return string.Format("Greetings from Animal Service! by: {0}", animal.Name); }
public void addAnimal(Animal animal) { SessionManager.AnimalCollectionSetter = animal; }