protected override async Task OnInitializedAsync() { if (!(await UserService.IsUserAdmin())) { UriHelper.NavigateTo(@"\worklogs"); } Input.IncludeOrganizations = true; Input.IncludeDisabled = true; Organizations = await OrganizationsService.GetOrganizations(); await Refresh(); }
public async Task LoadOrganizations() { Organizations = await OrganizationsService.GetOrganizations(); StateHasChanged(); var found = Organizations.Find(s => s.Name.Equals("CODE101", StringComparison.InvariantCultureIgnoreCase)); if (found != null) { await OrganizationChanged(found.Id); StateHasChanged(); } }
public async Task LoadOrganizations() { Organizations = await OrganizationsService.GetOrganizations(); StateHasChanged(); }