All checks were successful
Game Ideas build for PR / build_blazor_app (pull_request) Successful in 34s
16 lines
435 B
C#
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}");
|
|
}
|
|
}
|