ca4cd6c15c
ora la struttura è + coerente, iniziato emrge dati, chiavi tutte SURROGATE con ID
40 lines
916 B
Plaintext
40 lines
916 B
Plaintext
@model IEnumerable<StockManMVC.Models.Location>
|
|
|
|
@{
|
|
ViewBag.Title = "Index";
|
|
}
|
|
|
|
<h2>Index</h2>
|
|
|
|
<p>
|
|
@Html.ActionLink("Create New", "Create")
|
|
</p>
|
|
<table class="table table-condensed table-responsive table-striped table-hover">
|
|
<tr>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Descr)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.LocType.Descr)
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
|
|
@foreach (var item in Model) {
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Descr)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.LocType.Descr)
|
|
</td>
|
|
<td>
|
|
@Html.ActionLink("Edit", "Edit", new { id=item.ID }) |
|
|
@Html.ActionLink("Details", "Details", new { id=item.ID }) |
|
|
@Html.ActionLink("Delete", "Delete", new { id=item.ID })
|
|
</td>
|
|
</tr>
|
|
}
|
|
|
|
</table>
|