I have the following table located in a view within a controller named Student (/Student/Details/1):
@foreach (var item in Model.Enrollments) { &
You forgot an ) after Html.DisplayFor(modelItem => item.Course.Title.
)
Html.DisplayFor(modelItem => item.Course.Title
Maybe try adding a .ToString() to it might help.
.ToString()