Beispiel #1
0
        private async Task SaveAsync()
        {
            try
            {
                await CategoryLogic.CreateCategoryAsync(Category);

                NavigationManager.NavigateTo("admin/categories");
            }
            catch (UserException e)
            {
                Logger.LogError(e, e.Message);
                await ShowErrorMessageAsync(e.Message);
            }
            catch (Exception e)
            {
                Logger.LogError(e, e.Message);
                await ShowErrorMessageAsync();
            }
        }