protected async System.Threading.Tasks.Task Form0Submit(NorthwindBlazor.Models.Northwind.CustomerDemographic args) { try { var northwindCreateCustomerDemographicResult = await Northwind.CreateCustomerDemographic(customerdemographic); DialogService.Close(customerdemographic); } catch (Exception northwindCreateCustomerDemographicException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new CustomerDemographic!"); } }
protected async void Form0Submit(CustomerDemographic args) { var northwindCreateCustomerDemographicResult = await Northwind.CreateCustomerDemographic(customerdemographic); DialogService.Close(customerdemographic); }
protected async void Form0Submit(CustomerDemographic args) { var northwindCreateCustomerDemographicResult = await Northwind.CreateCustomerDemographic(customerdemographic); UriHelper.NavigateTo("CustomerDemographics"); }