Index.cshtml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. @model IEnumerable<ShoeShopMvc.Models.Order>
  2. @{
  3. ViewData["Title"] = "Index";
  4. }
  5. <h1>Index</h1>
  6. <p>
  7. <a asp-action="Create">Create New</a>
  8. </p>
  9. <table class="table">
  10. <thead>
  11. <tr>
  12. <th>
  13. @Html.DisplayNameFor(model => model.OrdersDate)
  14. </th>
  15. <th>
  16. @Html.DisplayNameFor(model => model.DeliveryDate)
  17. </th>
  18. <th>
  19. @Html.DisplayNameFor(model => model.AddressPickpoints)
  20. </th>
  21. <th>
  22. @Html.DisplayNameFor(model => model.ClientId)
  23. </th>
  24. <th>
  25. @Html.DisplayNameFor(model => model.Cod)
  26. </th>
  27. <th>
  28. @Html.DisplayNameFor(model => model.StatusId)
  29. </th>
  30. <th></th>
  31. </tr>
  32. </thead>
  33. <tbody>
  34. @foreach (var item in Model) {
  35. <tr>
  36. <td>
  37. @Html.DisplayFor(modelItem => item.OrdersDate)
  38. </td>
  39. <td>
  40. @Html.DisplayFor(modelItem => item.DeliveryDate)
  41. </td>
  42. <td>
  43. @Html.DisplayFor(modelItem => item.AddressPickpoints)
  44. </td>
  45. <td>
  46. @Html.DisplayFor(modelItem => item.ClientId)
  47. </td>
  48. <td>
  49. @Html.DisplayFor(modelItem => item.Cod)
  50. </td>
  51. <td>
  52. @Html.DisplayFor(modelItem => item.StatusId)
  53. </td>
  54. <td>
  55. <a asp-action="Edit" asp-route-id="@item.OrdersId">Edit</a> |
  56. <a asp-action="Details" asp-route-id="@item.OrdersId">Details</a> |
  57. <a asp-action="Delete" asp-route-id="@item.OrdersId">Delete</a>
  58. </td>
  59. </tr>
  60. }
  61. </tbody>
  62. </table>