public void Editar(Pet pet) { var petResults = _petValidation.IsValid(pet); if (petResults.IsValid) { _petRepository.Editar(pet); } else { throw new Exception(petResults.ToString("~")); } }