예제 #1
0
 protected override async Task OnInitializedAsync()
 {
     try
     {
         Category = new CategoryDto();
         Category = await CategoryLogic.GetCategoryAsync(Id);
     }
     catch (FormatException e)
     {
         Logger.LogWarning(e, e.Message);
         NavigationManager.NavigateTo("/Error");
     }
     catch (Exception e)
     {
         Logger.LogError(e, e.Message);
         NavigationManager.NavigateTo("/Error");
     }
 }