2024-05-30 19:37:45 +04:00
|
|
|
@using ElectronicsShopContracts.ViewModels
|
|
|
|
|
|
|
|
@model List<MessageInfoViewModel>
|
|
|
|
@{
|
|
|
|
ViewData["Title"] = "Message";
|
|
|
|
}
|
|
|
|
|
|
|
|
<div class="text-center">
|
2024-06-01 02:22:36 +04:00
|
|
|
<h1 class="display-4">Письма</h1>
|
2024-05-30 19:37:45 +04:00
|
|
|
</div>
|
|
|
|
<div class="text-center">
|
|
|
|
@{
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
Заголовок
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Тело письма
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Дата письма
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@if (Model != null)
|
|
|
|
{
|
|
|
|
@foreach (var item in Model)
|
|
|
|
{
|
|
|
|
<th>
|
|
|
|
<th>
|
|
|
|
@Html.DisplayFor(modelItem => item.Subject)
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
@Html.DisplayFor(modelItem => item.Body)
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
@Html.DisplayFor(modelItem => item.DateDelivery)
|
|
|
|
</th>
|
|
|
|
</th>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
}
|
|
|
|
</div>
|