更新时间:2023-02-13 10:09:03
是!
string url = Url.Action(MVC.Views.Index());
例如
..您应该获得与视图中相同的对象集,只需访问MVC
对象并将其传递给Url.Action().
.. for example. You should get the same set of objects you get in your views, just access the MVC
object and pass it to Url.Action().
Some more notes about using T4MVC in a controller action here: http://www.davidferguson.me.uk/Blogs/Post/strongly-typed-actions-views-and-controllers-with-t4mvc