Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @model IEnumerable<LoganMVC.Models.User>
- @{
- ViewBag.Title = "Index";
- Layout = "~/Views/Shared/_Layout.cshtml";
- }
- <h2>Manage Users @Html.ActionLink("New", "Add", "Account", new { createdby = User.Identity.Name })</h2>
- <table>
- <thead>
- <tr>
- <th>*</th>
- <th>User name</th>
- <th>Email</th>
- <th>Created by</th>
- <th>Created date</th>
- </tr>
- </thead>
- <tbody>
- @foreach (var user in Model)
- {
- <tr>
- <td>@Html.ActionLink("Edit", "Edit", "Account", new { id = user.UserId }) | @Html.ActionLink("Delete", "Delete", "Account", new { id = user.UserId })</td>
- <td>@user.Username</td>
- <td>@user.EmailAddress</td>
- <td>@user.CreatedBy</td>
- <td>@user.CreateDate</td>
- </tr>
- }
- </tbody>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement