If is was an ActionLink
you would do this:
@Html.ActionLink("View1", "Task", new {id=0}, null);
So in your case, using Url.Action()
it would be:
href="@Url.Action("View1", "Task", new {id=0})"
Which in your sample is:
<a class="v-patient pointer" data-id="0" href="@Url.Action("View1", "Task", new {id=0})">View Patient</a></td>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…