private async Task DefaultLoadAsync() { try { SetGeneralUpParties(await UpPartyService.FilterUpPartyAsync(null)); } catch (TokenUnavailableException) { await(OpenidConnectPkce as TenantOpenidConnectPkce).TenantLoginAsync(); } catch (Exception ex) { upPartyFilterForm.SetError(ex.Message); } }
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; } } }