protected async Task ShowCreateModal() { SetModalParameters(new WalletModel { Currency = Data.Wallet.Currency.USD }, async(w) => { await WalletService.CreateWalletAsync(w); }); Parameters.Add(nameof(WalletForm.SubmitText), Resource.Create); var title = Resource.CreateWallet; await ShowModalWindowAsync <WalletForm, WalletModel>(title, async() => { userWallets = await WalletService.GetWalletsAsync(); await SetSelectedWalletAsync(userWallets.OrderBy(x => x.WalletId).Last()); await TryUpdateWalletInfoAsync(); IsPageLoaded = true; StateHasChanged(); }); }