protected async System.Threading.Tasks.Task Form0Submit(NorthwindBlazor.Models.Northwind.CustomerDemographic args)
        {
            try
            {
                var northwindCreateCustomerDemographicResult = await Northwind.CreateCustomerDemographic(customerdemographic);

                DialogService.Close(customerdemographic);
            }
            catch (Exception northwindCreateCustomerDemographicException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new CustomerDemographic!");
            }
        }
 protected async System.Threading.Tasks.Task Load()
 {
     customerdemographic = new NorthwindBlazor.Models.Northwind.CustomerDemographic();
 }
        protected async System.Threading.Tasks.Task Load()
        {
            var northwindGetCustomerDemographicByCustomerTypeIdResult = await Northwind.GetCustomerDemographicByCustomerTypeId($"{CustomerTypeID}");

            customerdemographic = northwindGetCustomerDemographicByCustomerTypeIdResult;
        }
Esempio n. 4
0
        protected async System.Threading.Tasks.Task Grid0RowSelect(NorthwindBlazor.Models.Northwind.CustomerDemographic args)
        {
            var result = await DialogService.OpenAsync <EditCustomerDemographic>("Edit Customer Demographic", new Dictionary <string, object>() { { "CustomerTypeID", args.CustomerTypeID } });

            await InvokeAsync(() => { StateHasChanged(); });
        }
Esempio n. 5
0
 partial void OnCustomerDemographicUpdated(Models.Northwind.CustomerDemographic item);