public Pet AddPet(Pet pet) { if (string.IsNullOrEmpty(pet.Colour)) { throw new InvalidOperationException("Pet needs a Colour"); } return(_petRepository.CreatePet(pet)); }