What is the syntax for a strongly-typed ActionLink in MVC 4 with MVC 4 Futures?

前端 未结 1 1824
野的像风
野的像风 2020-12-16 16:02

I am using a new MVC 4 Internet application template with Visual Studio 2012. I have installed the Nuget package for MVC 4 Futures. In my _Layout.cshtml I am

相关标签:
1条回答
  • 2020-12-16 16:56
    @(Html.ActionLink<CustomersController>(x => x.Index(), "Customers"))
    

    The Basics – (Strongly-Typed) Linking to MVC Actions

    This question covers it loosely.

    0 讨论(0)
提交回复
热议问题