Files
game-ideas/src/GameIdeas/Client/GameIdeas.BlazorApp/Pages/Games/Components/GameBase.cs
Egamorf 51dab81121 feature/apply-filter (#18)
Co-authored-by: Maxime Adler <madler@sqli.com>
Reviewed-on: #18
2025-04-20 15:43:24 +02:00

16 lines
435 B
C#

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}");
}
}