Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @model IEnumerable<OverTime.Models.UserModel>
- @{
- ViewBag.Title = "Index";
- Layout = "~/Views/Shared/_Layout.cshtml";
- }
- <h2>Index</h2>
- <p>
- @Html.ActionLink("Create New", "Create")
- </p>
- <table class="table">
- <tr>
- <th>
- @Html.DisplayNameFor(model => model.usr_Id)
- </th>
- <th>
- @Html.DisplayNameFor(model => model.username)
- </th>
- <th>
- @Html.DisplayNameFor(model => model.email)
- </th>
- <th>
- @Html.DisplayNameFor(model => model.password)
- </th>
- <th></th>
- </tr>
- @foreach (var item in Model) {
- <tr>
- <td>
- @Html.DisplayFor(modelItem => item.usr_Id)
- </td>
- <td>
- @Html.DisplayFor(modelItem => item.username)
- </td>
- <td>
- @Html.DisplayFor(modelItem => item.email)
- </td>
- <td>
- @Html.DisplayFor(modelItem => item.password)
- </td>
- <td>
- @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
- @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
- @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
- </td>
- </tr>
- }
- </table>
Advertisement
Add Comment
Please, Sign In to add comment