我试图在表单提交时将整个模型数据返回到索引帖子。它只返回传入 URL 参数的 ID。为什么?
@using Volunteer.BootstrapSupport
@model IEnumerable<Volunteer.Models.Activity>
@using (Html.BeginForm())
{
<h2>Member Volunteering List </h2>
<div>
<button type="submit" class="btn btn-primary" >New Activity</button>
</div>
<table id="volunteerlist" class="table table-striped table-bordered table-hover .table-condensed">
<thead>
<tr>
<th>
@Html.DisplayNameFor(model => model.Committee.Name)
</th>
<th>
@Html.DisplayNameFor(model => model.Committee.Type)
</th>
<th>
@Html.DisplayNameFor(model => model.Role)
</th>
<th>
@Html.DisplayNameFor(model => model.EndDate)
</th>
<th>
@Html.DisplayNameFor(model => model.Source)
</th>
<th></th>
</tr>