public void EditPokemon(Pokemon pokemon, string name)
 {
     if (pokemon == null || pokemon.Name == null || pokemon.Alias == null || pokemon.ImageUrl == null || name == null)
     {
         throw new BadRequestException($"Pokemon require a name, alias and imageUrl.");
     }
     if (!_repository.PokemonExist(name))
     {
         throw new NotFoundException($"Pokemon with name {pokemon.Name} not found.");
     }
     //verificar se os tipos e habilidades existem
     try
     {
         _repository.EditPokemon(pokemon, name);
     }
     catch (Exception ex)
     {
         throw new BusinessException(ex.Message);
     }
 }