protected async Task BackToList() { if (OnCloseSet) { await OnCloseClick.InvokeAsync(null).ConfigureAwait(true); } else { NavigationManager.NavigateTo("sentinel-entries", replace: true); } }
internal async Task DeleteClick() { try { await SentinelEntryService.Delete(Id).ConfigureAwait(true); DeleteFailed = false; } catch (Exception e) { Logger.LogError(e, "Deleting failed"); DeleteFailed = true; } if (!DeleteFailed) { await OnCloseClick.InvokeAsync(null).ConfigureAwait(true); } }