public async Task UpPartyCancelAsync(GeneralUpPartyViewModel upParty) { if (upParty.CreateMode) { UpParties.Remove(upParty); } else { UpParty.Edit = false; } await OnStateHasChanged.InvokeAsync(UpParty); }
private async Task DeleteLoginUpPartyAsync(GeneralLoginUpPartyViewModel generalLoginUpParty) { try { await UpPartyService.DeleteLoginUpPartyAsync(generalLoginUpParty.Name); UpParties.Remove(generalLoginUpParty); await OnStateHasChanged.InvokeAsync(UpParty); } catch (TokenUnavailableException) { await(OpenidConnectPkce as TenantOpenidConnectPkce).TenantLoginAsync(); } catch (Exception ex) { generalLoginUpParty.Form.SetError(ex.Message); } }