@model IEnumerable @{ ViewBag.Title = "Manage Accounts"; }

@ViewBag.Title

@using (Html.BeginForm()) {

Find by name: @Html.TextBox("SearchString")  

} @if (Model.Count() != 0) { @foreach (var item in Model) { }
Name Banned Rank Expires
@Html.ActionLink(item.Name, "Details", new { id = item.AccountId }) @if (!item.Banned) { @("False") } @(item.Rank == null ? "None" : item.Rank.Name) @(item.Expires == 0 ? "Never" : new DateTime(item.Expires, DateTimeKind.Local).ToString())
}