using GameIdeas.Shared.Dto; using Microsoft.AspNetCore.Components; namespace GameIdeas.BlazorApp.Pages.Games.Components; public class GameBase : ComponentBase { [Parameter] public GameDto GameDto { get; set; } = new(); [Inject] public NavigationManager NavigationManager { get; set; } = default!; protected void HandleDetailClicked() { NavigationManager.NavigateTo($"/Games/Detail/{GameDto.Id}"); } }