38 lines
1.2 KiB
Plaintext
38 lines
1.2 KiB
Plaintext
@using BankContracts.ViewModels;
|
|
|
|
@model List<OperationViewModel>
|
|
|
|
@{
|
|
ViewData["Title"] = "Операция";
|
|
}
|
|
<h1>@ViewData["Title"]</h1>
|
|
|
|
<div class="text-center">
|
|
<a asp-action="Operation">Создать новый операцию</a>
|
|
<table class="table table-striped table-hover" >
|
|
<thead>
|
|
<tr>
|
|
<th>Телефон сотрудника</th>
|
|
<th>Вид</th>
|
|
<th>Тип</th>
|
|
<th>Цена</th>
|
|
<th>Изменить</th>
|
|
<th>Удалить</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var car in Model)
|
|
{
|
|
<tr>
|
|
<td>@Html.DisplayFor(modelItem => car.EmployeePhoneNumber)</td>
|
|
<td>@Html.DisplayFor(modelItem => car.Mark)</td>
|
|
<td>@Html.DisplayFor(modelItem => car.Model)</td>
|
|
<td>@Html.DisplayFor(modelItem => car.Price)</td>
|
|
<td><a asp-action="Operation" asp-route-id="@car.Id">Изменить</a></td>
|
|
<td><a asp-action="RemoveOperation" asp-route-id="@car.Id">Удалить</a></td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|