ISEbd-21_Melnikov_I.O._CarS.../CarService/CarServiceWebApp/Views/Home/RepairRequests.cshtml

38 lines
952 B
Plaintext
Raw Normal View History

2023-05-25 13:31:55 +04:00
@{
ViewData["Title"] = "Заявки на ремонт";
}
<div class="text-center">
<h1 class="display-4">Заявки</h1>
@if (ViewBag.RepairRequests.Count != 0)
{
<center>
<table>
<thead>
<tr>
<th>Дата создания</th>
<th>Транспортное средство</th>
<th>VIN-номер</th>
<th>Гос. номер</th>
<th>Клиент</th>
</tr>
</thead>
<tbody>
@foreach (var request in ViewBag.RepairRequests)
{
<tr>
<td>@request.DateCreated</td>
<td>@request.VehicleName</td>
<td>@request.VehicleVIN</td>
<td>@request.VehiclePlate</td>
<td>@request.CustomerName</td>
<td><a href="/Home/RepairRequest/@request.Id">Затраты</a></td>
<td><a href="/Home/WorksInRequest/@request.Id">Работы</a></td>
2023-05-25 13:31:55 +04:00
</tr>
}
</tbody>
</table>
</center>
}
<div>@ViewBag.Exception</div>
</div>