@using UniversityContracts.ViewModels @model List @{ List students = ViewBag.Students; } @{ ViewData["Title"] = "Manage Disciplines"; }

@ViewData["Title"]

Name:
Description:
Date:
Teacher:
Students:
@foreach (var student in students) {
}
@foreach (var item in Model) { }
Name Description Date Teacher Name Actions
@Html.DisplayFor(modelItem => item.Id) @Html.DisplayFor(modelItem => item.Name) @Html.DisplayFor(modelItem => item.Date) @Html.DisplayFor(modelItem => item.TeacherName)