public async Task <PokemonDetailViewModel> EditPokemon(PokemonDetailViewModel pokemonDetailViewModel) { tblMyPokedex pokemon = await MapDetailViewModelToMyPokemon(pokemonDetailViewModel); await _pokedexRepository.EditPokemon(pokemon); _logger.LogInformation(Constants.Updated + " " + Constants.Pokemon + ": " + pokemonDetailViewModel.MyPokemonId); return(pokemonDetailViewModel); }