예제 #1
0
 protected async Task BackToList()
 {
     if (OnCloseSet)
     {
         await OnCloseClick.InvokeAsync(null).ConfigureAwait(true);
     }
     else
     {
         NavigationManager.NavigateTo("sentinel-entries", replace: true);
     }
 }
예제 #2
0
        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);
            }
        }