private void Add(string[] commandArgs) { string petName = commandArgs[0]; Pet pet = this.pets.FirstOrDefault(p => p.Name == petName); string clinicName = commandArgs[1]; Clinic clinic = GetClinic(clinicName); Console.WriteLine(clinic.Add(pet)); }