Exemplo n.º 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!");
            }
        }
Exemplo n.º 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");
            }
        }
Exemplo n.º 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(); });
        }
Exemplo n.º 5
0
 partial void OnOrderUpdated(Models.Northwind.Order item);
Exemplo n.º 6
0
 partial void OnOrderDeleted(Models.Northwind.Order item);