Ejemplo n.º 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(); });
        }
Ejemplo n.º 5
0
 protected async System.Threading.Tasks.Task Load()
 {
     region = new NorthwindBlazor.Models.Northwind.Region();
 }
Ejemplo n.º 6
0
 partial void OnRegionUpdated(Models.Northwind.Region item);
Ejemplo n.º 7
0
 partial void OnRegionDeleted(Models.Northwind.Region item);