public async Task Delete_Click() { await PokemonService.DeletePokemon(Pokemon.PokemonId); await OnPokemonDelete.InvokeAsync(Pokemon.PokemonId); }
protected async Task DeletePokemon() { await PokemonService.DeletePokemon(EditPokemonModel.PokemonId); NavigationManager.NavigateTo("/"); }