示例#1
0
        protected async System.Threading.Tasks.Task Form0Submit(NorthwindBlazor.Models.Northwind.Region args)
        {
            try
            {
                var northwindCreateRegionResult = await Northwind.CreateRegion(region);

                DialogService.Close(region);
            }
            catch (Exception northwindCreateRegionException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new Region!");
            }
        }
        protected async System.Threading.Tasks.Task Form0Submit(NorthwindBlazor.Models.Northwind.Region args)
        {
            try
            {
                var northwindUpdateRegionResult = await Northwind.UpdateRegion(int.Parse($"{RegionID}"), region);

                DialogService.Close(region);
            }
            catch (Exception northwindUpdateRegionException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update Region");
            }
        }
        protected async System.Threading.Tasks.Task Load()
        {
            var northwindGetRegionByRegionIdResult = await Northwind.GetRegionByRegionId(int.Parse($"{RegionID}"));

            region = northwindGetRegionByRegionIdResult;
        }
        protected async System.Threading.Tasks.Task Grid0RowSelect(NorthwindBlazor.Models.Northwind.Region args)
        {
            var result = await DialogService.OpenAsync <EditRegion>("Edit Region", new Dictionary <string, object>() { { "RegionID", args.RegionID } });

            await InvokeAsync(() => { StateHasChanged(); });
        }
示例#5
0
 protected async System.Threading.Tasks.Task Load()
 {
     region = new NorthwindBlazor.Models.Northwind.Region();
 }
示例#6
0
 partial void OnRegionUpdated(Models.Northwind.Region item);
示例#7
0
 partial void OnRegionDeleted(Models.Northwind.Region item);