protected async System.Threading.Tasks.Task Form0Submit(NorthwindBlazor.Models.Northwind.Order args) { try { var northwindCreateOrderResult = await Northwind.CreateOrder(order); DialogService.Close(order); } catch (Exception northwindCreateOrderException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new Order!"); } }
protected async System.Threading.Tasks.Task Form0Submit(NorthwindBlazor.Models.Northwind.Order args) { try { var northwindUpdateOrderResult = await Northwind.UpdateOrder(int.Parse($"{OrderID}"), order); DialogService.Close(order); } catch (Exception northwindUpdateOrderException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update Order"); } }
protected async System.Threading.Tasks.Task Load() { var northwindGetCustomersResult = await Northwind.GetCustomers(); getCustomersResult = northwindGetCustomersResult; var northwindGetEmployeesResult = await Northwind.GetEmployees(); getEmployeesResult = northwindGetEmployeesResult; var northwindGetShippersResult = await Northwind.GetShippers(); getShippersResult = northwindGetShippersResult; order = new NorthwindBlazor.Models.Northwind.Order(); }
protected async System.Threading.Tasks.Task Grid0RowSelect(NorthwindBlazor.Models.Northwind.Order args) { var result = await DialogService.OpenAsync <EditOrder>("Edit Order", new Dictionary <string, object>() { { "OrderID", args.OrderID } }); await InvokeAsync(() => { StateHasChanged(); }); }
partial void OnOrderUpdated(Models.Northwind.Order item);
partial void OnOrderDeleted(Models.Northwind.Order item);