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

36 lines
799 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>
</tr>
}
</tbody>
</table>
</center>
}
<div>@ViewBag.Exception</div>
</div>