protected async System.Threading.Tasks.Task Load() { var northwindGetEmployeesResult = await Northwind.GetEmployees(); getEmployeesResult = northwindGetEmployeesResult; var northwindGetTerritoriesResult = await Northwind.GetTerritories(); getTerritoriesResult = northwindGetTerritoriesResult; employeeterritory = new NorthwindBlazor.Models.Northwind.EmployeeTerritory(); }
protected async System.Threading.Tasks.Task Form0Submit(NorthwindBlazor.Models.Northwind.EmployeeTerritory args) { try { var northwindUpdateEmployeeTerritoryResult = await Northwind.UpdateEmployeeTerritory(int.Parse($"{EmployeeID}"), $"{TerritoryID}", employeeterritory); DialogService.Close(employeeterritory); } catch (Exception northwindUpdateEmployeeTerritoryException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update EmployeeTerritory"); } }
protected async System.Threading.Tasks.Task Form0Submit(NorthwindBlazor.Models.Northwind.EmployeeTerritory args) { try { var northwindCreateEmployeeTerritoryResult = await Northwind.CreateEmployeeTerritory(employeeterritory); DialogService.Close(employeeterritory); } catch (Exception northwindCreateEmployeeTerritoryException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new EmployeeTerritory!"); } }
protected async System.Threading.Tasks.Task Grid0RowSelect(NorthwindBlazor.Models.Northwind.EmployeeTerritory args) { var result = await DialogService.OpenAsync <EditEmployeeTerritory>("Edit Employee Territory", new Dictionary <string, object>() { { "EmployeeID", args.EmployeeID }, { "TerritoryID", args.TerritoryID } }); await InvokeAsync(() => { StateHasChanged(); }); }
partial void OnEmployeeTerritoryUpdated(Models.Northwind.EmployeeTerritory item);