@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 (Name, PhoneNumber) in item.Students) {
@Name
@PhoneNumber
}