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