rspec/rules/S6931/vbnet/noncompliant-code.adoc

20 lines
462 B
Plaintext

[source,vbnet,diff-id=1,diff-type=noncompliant]
----
<Route("[controller]")> ' This route is ignored
Public Class ReviewsController
Inherits Controller
' Route is /reviews
<HttpGet("/reviews")>
Public Function Index() As ActionResult
' ...
End Function
' Route is /reviews/{reviewId}
<Route("/reviews/{reviewId}")>
Public Function Show(reviewId As Integer) As ActionResult
' ...
End Function
End Class
----