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!"); } }
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"); }