You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
790 B
35 lines
790 B
@model IEnumerable<WebAPIWithEF.Models.Pizza>
|
|
|
|
@{
|
|
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.Name)
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model) {
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Name)
|
|
</td>
|
|
<td>
|
|
<a asp-action="Edit" asp-route-id="@item.Id">Edit</a> |
|
|
<a asp-action="Details" asp-route-id="@item.Id">Details</a> |
|
|
<a asp-action="Delete" asp-route-id="@item.Id">Delete</a>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
|