protected async System.Threading.Tasks.Task Form0Submit(NorthwindBlazor.Models.Northwind.Category args)
        {
            try
            {
                var northwindCreateCategoryResult = await Northwind.CreateCategory(category);

                DialogService.Close(category);
            }
            catch (Exception northwindCreateCategoryException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new Category!");
            }
        }
示例#2
0
        protected async void Form0Submit(Category args)
        {
            var northwindCreateCategoryResult = await Northwind.CreateCategory(category);

            DialogService.Close(category);
        }
        protected async void Form0Submit(Category args)
        {
            var northwindCreateCategoryResult = await Northwind.CreateCategory(category);

            UriHelper.NavigateTo("Categories");
        }