Skip to content

Instantly share code, notes, and snippets.

@papeMK2
Created January 25, 2022 03:15
Show Gist options
  • Save papeMK2/bedf497f52f21cdf4f8a330f9a522ec8 to your computer and use it in GitHub Desktop.
Save papeMK2/bedf497f52f21cdf4f8a330f9a522ec8 to your computer and use it in GitHub Desktop.
ASP.NET Core Rooting Demo
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