@model LOC.Core.Model.Account.Account @{ ViewBag.Title = "Details"; }

Details

Account | @Html.ActionLink("Edit", "Edit", new { id=Model.AccountId }) | @Html.ActionLink("Back to List", "Index")
Name:
@Model.Name

Status:
@if (Model.Banned) { Banned } else { In Good Standing }

Rank:
@(Model.Rank == null ? "None" : Model.Rank.Name)
@if (Model.Rank != null && (Model.Rank.Name == "SILVER" || Model.Rank.Name == "GOLD")) {
Rank Expires:
@(Model.RankExpire)
}

Web Sales Transactions:
@if (Model.Transactions != null && Model.Transactions.Count > 0) { foreach (var transaction in Model.Transactions) {
@transaction.Time
@transaction.SalesPackage.Name
@transaction.SalesPackage.Price
} } else {
None
}
Game Ttem Transactions:
@if (Model.PvpTransactions != null && Model.PvpTransactions.Count > 0) { foreach (var transaction in Model.PvpTransactions) {
@transaction.GameSalesPackageId
} } else {
None
}
IpAddresses:
@if (Model.IpAddresses != null && Model.IpAddresses.Count > 0) { foreach (var ipAddress in Model.IpAddresses) {
@ipAddress.Address
} } else {
None
}