From 411f8d61fb787cf4fbbb4fe308e1de289e6d6b9a Mon Sep 17 00:00:00 2001 From: GokaPek Date: Wed, 29 May 2024 12:06:41 +0400 Subject: [PATCH] =?UTF-8?q?=D1=85=D0=BE=D1=82=D1=84=D0=B8=D0=BA=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/Home/Report.cshtml | 21 +++++-------------- 1 file changed, 5 insertions(+), 16 deletions(-) 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 - - } }