CourseWorkElectronicsShop/ElectronicsShop/ElectronicsShopShopClientApp/Views/Home/Message.cshtml

48 lines
810 B
Plaintext

@using ElectronicsShopContracts.ViewModels
@model List<MessageInfoViewModel>
@{
ViewData["Title"] = "Message";
}
<div class="text-center">
<h1 class="display-4">Письма</h1>
</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>