protected async System.Threading.Tasks.Task Form0Submit(NorthwindBlazor.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 System.Threading.Tasks.Task Grid0RowSelect(NorthwindBlazor.Models.Northwind.Customer args)
        {
            var result = await DialogService.OpenAsync <EditCustomer>("Edit Customer", new Dictionary <string, object>() { { "CustomerID", args.CustomerID } });

            await InvokeAsync(() => { StateHasChanged(); });
        }
 protected async System.Threading.Tasks.Task Load()
 {
     customer = new NorthwindBlazor.Models.Northwind.Customer();
 }
예제 #4
0
 partial void OnCustomerUpdated(Models.Northwind.Customer item);
예제 #5
0
 partial void OnCustomerDeleted(Models.Northwind.Customer item);
        protected async System.Threading.Tasks.Task Load()
        {
            var northwindGetCustomerByCustomerIdResult = await Northwind.GetCustomerByCustomerId($"{CustomerID}");

            customer = northwindGetCustomerByCustomerIdResult;
        }