48 lines
1.3 KiB
Plaintext
48 lines
1.3 KiB
Plaintext
@model IEnumerable<ThAmCo.Stock.Models.Dto.ProductStockDto>
|
|
|
|
@{
|
|
ViewData["Title"] = "Index";
|
|
}
|
|
|
|
<h1>Index</h1>
|
|
|
|
<p>
|
|
<a asp-action="Create">Create New</a>
|
|
</p>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.ProductStock.ProductId)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.ProductStock.Stock)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.ProductStock.PriceId)
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model) {
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.ProductStock.ProductId)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.ProductStock.Stock)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.ProductStock.PriceId)
|
|
</td>
|
|
<td>
|
|
<a asp-action="Edit" asp-route-id="@item.ProductStock.Id">Edit</a> |
|
|
<a asp-action="Details" asp-route-id="@item.ProductStock.Id">Details</a> |
|
|
<a asp-action="Delete" asp-route-id="@item.ProductStock.Id">Delete</a>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|