@page "/inspection" @inject TripManager TripManager; @if(Inspection is not null) { } else { } @code { public Inspection? Inspection = null; protected override async Task OnInitializedAsync() { await base.OnInitializedAsync(); Inspection = TripManager.Current; } }