T4MVC Url.Action(MVC.Area.Controller.Action()) returns 空

T4MVC Url.Action(MVC.Area.Controller.Action()) returns null

我正在尝试使用 Url.Action() 和 T4MVC 获取 URL。但是这个方法returnsnull:

Url.Action(result:MVC.Data.Persons.Search())

我该如何解决这个问题?

我不确定为什么会这样,但这是我所在区域的默认路线:

context.MapRoute(
    "Data_default",
    "Data/{controller}/{action}/{id}",
   MVC.Data.Persons.Persons()
);

这也使 Data 区域无法访问,所以我回滚到非 T4MVC 模式,两个问题都解决了!