13 lines
383 B
Plaintext
13 lines
383 B
Plaintext
[source,csharp]
|
|
----
|
|
[Route("[controller]")] // This route is ignored for the routing of Index1 and Index2
|
|
public class HomeController : Controller
|
|
{
|
|
[HttpGet("/Index1")] // This action is mapped to the root of the web application
|
|
public ActionResult Index1() => View();
|
|
|
|
[Route("/Index2")] // The same applies here
|
|
public ActionResult Index2() => View();
|
|
}
|
|
----
|