@model HeuristicLab.Services.Optimization.Web.Models.OrderAdminModel @{ ViewBag.Title = "Order Administration"; }

Welcome to the order administartion!

Newly created orders:

@if (Model.CreatedOrders != null && Model.CreatedOrders.Count > 0) { @foreach (var order in Model.CreatedOrders) { }
Username:Order details:Activate order?
@order.User.Name @foreach (var orderLine in order.OrderLines) { }
Id: Product name: Product price: Product quantity:
@orderLine.OrderId @orderLine.Product.Name @orderLine.ProductPrice @orderLine.Quantity
@using (Html.BeginForm("ActivateOrder", "OrderAdmin")) { }
} else {

No new orders available.

}

Active orders:

@if (Model.ActiveOrders != null && Model.ActiveOrders.Count > 0) { @foreach (var order in Model.ActiveOrders) { }
Username:Order details:Suspend order?
@order.User.Name @foreach (var orderLine in order.OrderLines) { }
Id: Product name: Product price: Product quantity:
@orderLine.OrderId @orderLine.Product.Name @orderLine.ProductPrice @orderLine.Quantity
@using (Html.BeginForm("SuspendOrder", "OrderAdmin")) { }
} else {

No activated orders available.

}

Suspended orders:

@if (Model.SuspendedOrders != null && Model.SuspendedOrders.Count > 0) { @foreach (var order in Model.SuspendedOrders) { }
Username:Order details:Activate order?
@order.User.Name @foreach (var orderLine in order.OrderLines) { }
Id: Product name: Product price: Product quantity:
@orderLine.OrderId @orderLine.Product.Name @orderLine.ProductPrice @orderLine.Quantity
@using (Html.BeginForm("ReactivateOrder", "OrderAdmin")) { }
} else {

No suspended orders available.

}