Created
January 25, 2022 03:15
-
-
Save papeMK2/bedf497f52f21cdf4f8a330f9a522ec8 to your computer and use it in GitHub Desktop.
ASP.NET Core Rooting Demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.AspNetCore.Mvc; | |
namespace Rooting.Controllers; | |
public class HomeController : Controller | |
{ | |
private readonly ILogger<HomeController> _logger; | |
public HomeController(ILogger<HomeController> logger) | |
{ | |
_logger = logger; | |
} | |
[Route("/Home/{id}/{name}/action")] | |
public IActionResult Index(int id, string name) | |
{ | |
return View(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment