0
我有一個簡單的表後MVC3表控制器動作
@using (Html.BeginForm("Save", "Subscription", FormMethod.Post))
{
<table>
<tr>
<th>
Name
</th>
<th>
Report
</th>
</tr>
@foreach (var item in Model.ReportSubscriptions)
{
<tr>
<td>
@Html.HiddenFor(item.Id)
@Html.TextBoxFor(item.Name)
</td>
<td>
@Html.TextBoxFor(item.Report)
</td>
</tr>
}
</table>
<button type="submit">Save</button>
}
保存操作
public ViewResult Save(IEnumerable<ReportSubscription> list)
{
throw new NotImplementedException();
}
}
我怎樣才能得到MVC反序列化後回我的模型?