protected async System.Threading.Tasks.Task Load() { var northwindGetOrdersResult = await Northwind.GetOrders(); getOrdersResult = northwindGetOrdersResult; var northwindGetProductsResult = await Northwind.GetProducts(); getProductsResult = northwindGetProductsResult; orderdetail = new NorthwindBlazor.Models.Northwind.OrderDetail(); }
protected async System.Threading.Tasks.Task Form0Submit(NorthwindBlazor.Models.Northwind.OrderDetail args) { try { var northwindUpdateOrderDetailResult = await Northwind.UpdateOrderDetail(int.Parse($"{OrderID}"), int.Parse($"{ProductID}"), orderdetail); DialogService.Close(orderdetail); } catch (Exception northwindUpdateOrderDetailException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update OrderDetail"); } }
protected async System.Threading.Tasks.Task Form0Submit(NorthwindBlazor.Models.Northwind.OrderDetail args) { try { var northwindCreateOrderDetailResult = await Northwind.CreateOrderDetail(orderdetail); DialogService.Close(orderdetail); } catch (Exception northwindCreateOrderDetailException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new OrderDetail!"); } }
protected async System.Threading.Tasks.Task Grid0RowSelect(NorthwindBlazor.Models.Northwind.OrderDetail args) { var result = await DialogService.OpenAsync <EditOrderDetail>("Edit Order Detail", new Dictionary <string, object>() { { "OrderID", args.OrderID }, { "ProductID", args.ProductID } }); await InvokeAsync(() => { StateHasChanged(); }); }
partial void OnOrderDetailUpdated(Models.Northwind.OrderDetail item);