Add game add button in detail
This commit is contained in:
@@ -6,7 +6,7 @@ namespace GameIdeas.BlazorApp.Pages.Detail;
|
||||
|
||||
public partial class GameDetail
|
||||
{
|
||||
[Inject] private IGameGateway GameGateway { get; set; } = default!;
|
||||
[Inject] private NavigationManager NavigationManager { get; set; } = default!;
|
||||
[Parameter] public int GameId { get; set; }
|
||||
|
||||
private GameDetailDto Game = new();
|
||||
@@ -16,4 +16,9 @@ public partial class GameDetail
|
||||
Game = await GameGateway.GetGameById(GameId);
|
||||
await base.OnInitializedAsync();
|
||||
}
|
||||
|
||||
private void HandleSubmitNewGame()
|
||||
{
|
||||
NavigationManager.NavigateTo("/");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user