0

When i use T4MVC for direct to ActionName in Post Area , but it doesn't work when i see render html code

<a class="nav-link" href="@Url.Action(MVC.Post.Admin.ActionNames.Posts,MVC.Post.Admin.Name, new {area = MVC.Post.Name})"><i class="icon-user-follow"></i>showPost</a>

when i see View Page Source in Firefox i see this code

 <a href="/?area=Post">showPost</a>

Please let me know what I am doing.

Thanks

Mohammad Daliri
  • 1,370
  • 6
  • 20
  • 43

1 Answers1

0

Just use MVC.AreaName.SomeController.SomeAction()

href="@Url.Action(result: MVC.Post.Admin.Posts())"
VahidN
  • 18,457
  • 8
  • 73
  • 117