@using UniversityContracts.ViewModels @model List @{ ViewData["Title"] = "Report by teachers and students"; }

@ViewData["Title"]

@foreach (var item in Model) { }
Id Teacher name Student
@item.TeacherId @item.TeacherName @foreach (var st in item.Students) {
@st
}