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

49 lines
871 B
Plaintext
Raw Normal View History

@using ElectronicsShopContracts.ViewModels
@model List<MessageInfoViewModel>
@{
ViewData["Title"] = "Message";
}
<div class="text-center">
<h1 class="display-4">Отчёты</h1>
<a asp-action="CreateProduct">Создать товар</a>
</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>