Y3S1-Cloud_Systems_DevOps/ThAmCo-Stock/ThAmCo.Stock/Views/Stock/Index.cshtml

48 lines
1.3 KiB
Plaintext
Raw Normal View History

2020-06-09 20:21:37 +00:00
@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>