2024-05-29 18:32:24 +04:00
|
|
|
@using ElectronicsShopContracts.ViewModels
|
|
|
|
|
|
|
|
@model OrderViewModel
|
|
|
|
@{
|
2024-05-29 23:03:32 +04:00
|
|
|
ViewData["Title"] = "CreateOrders";
|
2024-05-29 18:32:24 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
<h1 class="display-4">Корзина</h1>
|
|
|
|
@{
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<th>
|
|
|
|
<th>
|
|
|
|
Продукт
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Количество
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Сумма
|
|
|
|
</th>
|
|
|
|
</th>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@if(Model!=null){
|
|
|
|
@foreach (var item in Model.ProductList)
|
|
|
|
{
|
|
|
|
<th>
|
|
|
|
<th>
|
2024-05-29 21:23:34 +04:00
|
|
|
@Html.DisplayFor(modelItem => item.Value.Item1.ProductName)
|
2024-05-29 18:32:24 +04:00
|
|
|
</th>
|
|
|
|
<th>
|
2024-05-29 21:23:34 +04:00
|
|
|
@Html.DisplayFor(modelItem => item.Value.Item2)
|
2024-05-29 18:32:24 +04:00
|
|
|
</th>
|
|
|
|
<th>
|
2024-05-29 21:23:34 +04:00
|
|
|
@Html.DisplayFor(modelItem => item.Value.Item1.Price*item.Value.Item2)
|
2024-05-29 18:32:24 +04:00
|
|
|
</th>
|
|
|
|
</th>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
}
|
|
|
|
</div>
|