@model IEnumerable @{ ViewBag.Title = "Manage users | BuildFeed"; }

Manage users

@foreach (MembershipUser mu in Model) { }
Username Email Address Last Login Time Last Lockout Time
@Html.DisplayFor(modelItem => mu.UserName) @Html.DisplayFor(modelItem => mu.Email) @Html.DisplayFor(modelItem => mu.LastLoginDate) @Html.DisplayFor(modelItem => mu.LastLockoutDate) @if (mu.IsApproved) { @Html.ActionLink("Unapprove", "unapprove", new { id = mu.ProviderUserKey }, new { @class = "btn btn-danger", style = "width:90px;" }) } else { @Html.ActionLink("Approve", "approve", new { id = mu.ProviderUserKey }, new { @class = "btn btn-success", style = "width:90px;" }) } @if (!mu.IsLockedOut) { @Html.ActionLink("Lock", "lock", new { id = mu.ProviderUserKey }, new { @class = "btn btn-danger", style = "width:90px;" }) } else { @Html.ActionLink("Unlock", "unlock", new { id = mu.ProviderUserKey }, new { @class = "btn btn-success", style = "width:90px;" }) }