@model IEnumerable<StudentModels.GradeSystem>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<p>
    @using (Html.BeginForm())
    {
        <div>Filter: @Html.TextBox("filter") <input type="submit" value="filter" class="btn btn-default" /></div>
    }
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.GradeSystemID }) |
            @Html.ActionLink("Details", "Details", new { id=item.GradeSystemID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.GradeSystemID })
        </td>
    </tr>
}

</table>
