예제 #1
0
        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!");
            }
        }
예제 #2
0
        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");
            }
        }
예제 #3
0
        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(); });
        }
예제 #5
0
 partial void OnOrderUpdated(Models.Northwind.Order item);
예제 #6
0
 partial void OnOrderDeleted(Models.Northwind.Order item);