rspec/rules/S6931/vbnet/why-example.adoc

18 lines
476 B
Plaintext

[source,vbnet]
----
<Route("[controller]")> ' This route is ignored for the routing of Index1 and Index2
Public Class HomeController
Inherits Controller
<HttpGet("/Index1")> ' This action is mapped to the root of the web application
Public Function Index1() As ActionResult
Return View()
End Function
<Route("/Index2")> ' The same applies here
Public Function Index2() As ActionResult
Return View()
End Function
End Class
----