@page "/Games/{id:guid}/Actions" @attribute [Authorize(Roles = RoleService.AdministratorRoleName)] @inject ArchiveService ArchiveService @code { [Parameter] public Guid Id { get; set; } Guid ArchiveId = Guid.Empty; ActionEditor ActionEditor; protected override async Task OnInitializedAsync() { var latestArchive = await ArchiveService.GetLatestArchive(a => a.GameId == Id); if (latestArchive != null) ArchiveId = latestArchive.Id; } }