protected async System.Threading.Tasks.Task Form0Submit(NwBlazor.Models.Northwind.Customer args) { try { var northwindCreateCustomerResult = await Northwind.CreateCustomer(customer); DialogService.Close(customer); } catch (Exception northwindCreateCustomerException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new Customer!"); } }
protected async void Form0Submit(Customer args) { var northwindCreateCustomerResult = await Northwind.CreateCustomer(customer); DialogService.Close(customer); }
protected async void Form0Submit(Customer args) { var northwindCreateCustomerResult = await Northwind.CreateCustomer(customer); UriHelper.NavigateTo("Customers"); }