protected async System.Threading.Tasks.Task Load()
        {
            var northwindGetSuppliersResult = await Northwind.GetSuppliers();

            getSuppliersResult = northwindGetSuppliersResult;

            var northwindGetCategoriesResult = await Northwind.GetCategories();

            getCategoriesResult = northwindGetCategoriesResult;

            product = new NorthwindBlazor.Models.Northwind.Product();
        }
        protected async System.Threading.Tasks.Task Form0Submit(NorthwindBlazor.Models.Northwind.Product args)
        {
            try
            {
                var northwindCreateProductResult = await Northwind.CreateProduct(product);

                DialogService.Close(product);
            }
            catch (Exception northwindCreateProductException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new Product!");
            }
        }
        protected async System.Threading.Tasks.Task Form0Submit(NorthwindBlazor.Models.Northwind.Product args)
        {
            try
            {
                var northwindUpdateProductResult = await Northwind.UpdateProduct(int.Parse($"{ProductID}"), product);

                DialogService.Close(product);
            }
            catch (Exception northwindUpdateProductException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update Product");
            }
        }
Beispiel #4
0
        protected async System.Threading.Tasks.Task Grid0RowSelect(NorthwindBlazor.Models.Northwind.Product args)
        {
            var result = await DialogService.OpenAsync <EditProduct>("Edit Product", new Dictionary <string, object>() { { "ProductID", args.ProductID } });

            await InvokeAsync(() => { StateHasChanged(); });
        }
Beispiel #5
0
 partial void OnProductUpdated(Models.Northwind.Product item);
Beispiel #6
0
 partial void OnProductDeleted(Models.Northwind.Product item);