AspNetCore.Docs/aspnet/whitepapers/what-is-new-in-aspnet-mvc/samples/sample5.vb

8 lines
186 B
VB.net

Function View(ByVal id As Integer, Optional ByVal page As Integer = 1) _
As ActionResult
' ...
End Function
public ActionResult MyAction(int id, int page = 1) {
// ...
}