I've got the usual students courses mvc. What I would like to do is edit the courses in which the student is signed up without entering the courses.
I can display the courses of each student in its detail view, but I am not able sign up new ones with a drop table.
@foreach (var item in Model.Courses)
{
<tr>
<td>
@Html.DropDownList(@*something*@)
</td>
<td>
@Html.DisplayFor(modelItem => item.AllCourses) - @Html.DisplayFor(modelItem => item.Courses.Name)
</td>
</tr>
}
I would like to be able to add and remove courses from an student without having to enter the actual course.