Проблема с выводом планов обучения
This commit is contained in:
parent
9d7db7a41b
commit
9453fd225a
@ -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>
|
||||
|
||||
|
@ -22,7 +22,7 @@ namespace UniversityRestApi.Controllers
|
||||
{
|
||||
try
|
||||
{
|
||||
return _logic.ReadList(new PlanOfStudySearchModel { });
|
||||
return _logic.ReadList(new PlanOfStudySearchModel { UserId = userId });
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user