Проблема с выводом планов обучения

This commit is contained in:
DyCTaTOR 2024-05-27 01:11:57 +04:00
parent 9d7db7a41b
commit 9453fd225a
2 changed files with 9 additions and 5 deletions

View File

@ -32,6 +32,7 @@
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Profile</th>
<th>FormOfStudy</th>
<th>Actions</th>
@ -44,13 +45,16 @@
<td>
@Html.DisplayFor(modelItem => planOfStudy.Id)
</td>
<td>@planOfStudy.FormOfStudy</td>
<td>
@Html.DisplayFor(modelItem => planOfStudy.Profile)
</td>
<td>
@Html.DisplayFor(modelItem => planOfStudy.FormOfStudy)
</td>
<td>
</td>
<td>
<a asp-action="Edit" asp-route-id="@planOfStudy.Id" class="btn btn-warning">Edit</a>
<a asp-action="Details" asp-route-id="@planOfStudy.Id" class="btn btn-info">Details</a>
<a asp-action="Delete" asp-route-id="@planOfStudy.Id" class="btn btn-danger">Delete</a>
</td>
</tr>

View File

@ -22,7 +22,7 @@ namespace UniversityRestApi.Controllers
{
try
{
return _logic.ReadList(new PlanOfStudySearchModel { });
return _logic.ReadList(new PlanOfStudySearchModel { UserId = userId });
}
catch (Exception ex)
{