pong-game/PongGame/Pages/Index.cshtml.cs

16 lines
361 B
C#
Raw Permalink Normal View History

2022-11-02 18:59:44 +01:00
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace PongGame.Pages;
public class IndexModel : PageModel {
private readonly ILogger<IndexModel> _logger;
public IndexModel(ILogger<IndexModel> logger) {
_logger = logger;
}
2022-11-03 12:29:35 +01:00
public IActionResult OnGet() {
return RedirectToPage("Pong");
2022-11-02 18:59:44 +01:00
}
}