01 | @model IEnumerable< BookStore1.Models.Book > |
03 | @{ ViewData["Title"] = "Index"; } |
05 | < p >< a asp-action = "Create" >Create New</ a ></ p > |
10 | < th >@Html.DisplayNameFor( model => model.Title )</ th > |
11 | < th >@Html.DisplayNameFor( model => model.Genre )</ th > |
12 | < th >@Html.DisplayNameFor( model => model.Price )</ th > |
13 | < th >@Html.DisplayNameFor( model => model.PublishDate )</ th > |
19 | @foreach( var item in Model ) { |
21 | < td >@Html.DisplayFor( modelItem => item.Title )</ td > |
22 | < td >@Html.DisplayFor( modelItem => item.Genre )</ td > |
23 | < td >@Html.DisplayFor( modelItem => item.Price )</ td > |
24 | < td >@Html.DisplayFor( modelItem => item.PublishDate )</ td > |
26 | < a asp-action = "Edit" asp-route-id = "@item.Id" >Edit</ a > | |
27 | < a asp-action = "Details" asp-route-id = "@item.Id" >Details</ a > | |
28 | < a asp-action = "Delete" asp-route-id = "@item.Id" >Delete</ a > |
|