protected async System.Threading.Tasks.Task Form0Submit(NorthwindBlazor.Models.Northwind.Shipper args)
        {
            try
            {
                var northwindUpdateShipperResult = await Northwind.UpdateShipper(int.Parse($"{ShipperID}"), shipper);

                DialogService.Close(shipper);
            }
            catch (Exception northwindUpdateShipperException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update Shipper");
            }
        }
        protected async System.Threading.Tasks.Task Form0Submit(NorthwindBlazor.Models.Northwind.Shipper args)
        {
            try
            {
                var northwindCreateShipperResult = await Northwind.CreateShipper(shipper);

                DialogService.Close(shipper);
            }
            catch (Exception northwindCreateShipperException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new Shipper!");
            }
        }
 protected async System.Threading.Tasks.Task Load()
 {
     shipper = new NorthwindBlazor.Models.Northwind.Shipper();
 }
        protected async System.Threading.Tasks.Task Grid0RowSelect(NorthwindBlazor.Models.Northwind.Shipper args)
        {
            var result = await DialogService.OpenAsync <EditShipper>("Edit Shipper", new Dictionary <string, object>() { { "ShipperID", args.ShipperID } });

            await InvokeAsync(() => { StateHasChanged(); });
        }
        protected async System.Threading.Tasks.Task Load()
        {
            var northwindGetShipperByShipperIdResult = await Northwind.GetShipperByShipperId(int.Parse($"{ShipperID}"));

            shipper = northwindGetShipperByShipperIdResult;
        }
예제 #6
0
 partial void OnShipperUpdated(Models.Northwind.Shipper item);
예제 #7
0
 partial void OnShipperDeleted(Models.Northwind.Shipper item);