Esempio n. 1
0
 public async Task UpPartyCancelAsync(GeneralUpPartyViewModel upParty)
 {
     if (upParty.CreateMode)
     {
         UpParties.Remove(upParty);
     }
     else
     {
         UpParty.Edit = false;
     }
     await OnStateHasChanged.InvokeAsync(UpParty);
 }
Esempio n. 2
0
        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);
            }
        }