diff --git a/University/UniversityClientApp/Views/Home/Report.cshtml b/University/UniversityClientApp/Views/Home/Report.cshtml index be78992..d674df8 100644 --- a/University/UniversityClientApp/Views/Home/Report.cshtml +++ b/University/UniversityClientApp/Views/Home/Report.cshtml @@ -31,7 +31,6 @@ Id Teacher name Student - Student @@ -39,28 +38,18 @@ { - @Html.DisplayFor(modelItem => item.TeacherId) + @item.TeacherId - @Html.DisplayFor(modelItem => item.TeacherName) + @item.TeacherName - @foreach (var st in item.Students) + @foreach (var (Name, PhoneNumber) in item.Students) { -
- @Html.DisplayFor(modelItem => st) -
+
@Name
+
@PhoneNumber
} - @foreach (var student in item.Students) - { - - @student.Name - - - @student.PhoneNumber - - } }