예제 #1
0
 private async Task DefaultLoadAsync()
 {
     try
     {
         SetGeneralUpParties(await UpPartyService.FilterUpPartyAsync(null));
     }
     catch (TokenUnavailableException)
     {
         await(OpenidConnectPkce as TenantOpenidConnectPkce).TenantLoginAsync();
     }
     catch (Exception ex)
     {
         upPartyFilterForm.SetError(ex.Message);
     }
 }
예제 #2
0
 private async Task OnUpPartyFilterValidSubmitAsync(EditContext editContext)
 {
     try
     {
         SetGeneralUpParties(await UpPartyService.FilterUpPartyAsync(upPartyFilterForm.Model.FilterName));
     }
     catch (FoxIDsApiException ex)
     {
         if (ex.StatusCode == System.Net.HttpStatusCode.NotFound)
         {
             upPartyFilterForm.SetFieldError(nameof(upPartyFilterForm.Model.FilterName), ex.Message);
         }
         else
         {
             throw;
         }
     }
 }