I'm trying get URL using Url.Action()
and T4MVC. But this method returns null
:
Url.Action(result:MVC.Data.Persons.Search())
how can I solve this problem?
I'm not sure why it's happening but this was my Area's default route:
context.MapRoute(
"Data_default",
"Data/{controller}/{action}/{id}",
MVC.Data.Persons.Persons()
);
and that also made Data
area inaccessible so I rolled back to non-T4MVC mode and both problems solved!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.