2

In my razor view I have the following:

   var url = "@Url.Action(Mvc.Leads.GetAllLeads())"
   var url2 = "@Url.Action(Mvc.Leads.Actions.GetAllLeads())"

They both appear to generate the same Url. Why the actions property?

jaffa
  • 26,770
  • 50
  • 178
  • 289

1 Answers1

1

In short, no. The Actions property is there for backward compat with a really early version of T4MVC. But it may be better to yank it altogether now to avoid confusion.

David Ebbo
  • 42,443
  • 8
  • 103
  • 117