MVC 3 传递 List 数据 到 Controller
想从view 传递一个table 到 controller
请问Controller怎么写?
代码如
@foreach (var item in Model) {
<tr>
<td>@Html.DisplayFor(modelItem => item.CustomerCode)</td>
<td>
@Html.DisplayFor(modelItem => item.CustomerName)
</td>
<td>
@Html.DisplayFor(modelItem => item.CompanyName)
</td>
<td>
@Html.DisplayFor(modelItem => item.Region)
</td>
<td>
@Html.DisplayFor(modelItem => item.Country)
</td>
<td>
@Html.DisplayFor(modelItem => item.City)
</td>
</tr>