How to use hyper linking in Razor without @Url.*
or @Html.*
There are 4 ways to hyperly link views in ASP.NET MVC as far as I know:
@Url.Action
@Url.ActionLink
@Html.Action
@Html.ActionLink
I can use them as, for example:
<a href=@Url.Action("ActionName","ControllerName")> Test </a>
Which generates:
<a href="ControllerName/ActionName"> Test </a>
Is there a way to generate the Url part i.e. "ControllerName/ActionName" in ASP.NET MVC Razor apart from the above mentioned 4 ways?
Background: Mono is not able to recognize these kind of Razor components. If some kind of Url generation works out then we can use ASP.NET MVC 5 with Razor on Mono.