protected async System.Threading.Tasks.Task Form0Submit(NorthwindBlazor.Models.Northwind.Supplier args)
        {
            try
            {
                var northwindCreateSupplierResult = await Northwind.CreateSupplier(supplier);

                DialogService.Close(supplier);
            }
            catch (Exception northwindCreateSupplierException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new Supplier!");
            }
        }
 protected async System.Threading.Tasks.Task Load()
 {
     supplier = new NorthwindBlazor.Models.Northwind.Supplier();
 }
        protected async System.Threading.Tasks.Task Load()
        {
            var northwindGetSupplierBySupplierIdResult = await Northwind.GetSupplierBySupplierId(int.Parse($"{SupplierID}"));

            supplier = northwindGetSupplierBySupplierIdResult;
        }
Example #4
0
 partial void OnSupplierUpdated(Models.Northwind.Supplier item);
Example #5
0
 partial void OnSupplierDeleted(Models.Northwind.Supplier item);
        protected async System.Threading.Tasks.Task Grid0RowSelect(NorthwindBlazor.Models.Northwind.Supplier args)
        {
            var result = await DialogService.OpenAsync <EditSupplier>("Edit Supplier", new Dictionary <string, object>() { { "SupplierID", args.SupplierID } });

            await InvokeAsync(() => { StateHasChanged(); });
        }