﻿@model Orders.com.Web.MVC.ViewModels.OrderItemViewModel

@{
    ViewBag.Title = "Delete";
}

<h2>Delete Item</h2>

<h3>Are you sure you want to delete this?</h3>
<div class="form-horizontal">

    <div class="form-group">
        <label class="control-label col-md-1">Category</label>
        <div class="col-md-10">
            @Html.DisplayFor(model => model.AssociatedCategory.Name)
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-md-1">Product</label>
        <div class="col-md-10">
            @Html.DisplayFor(model => model.AssociatedProduct.Name)
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-md-1">Price</label>
        <div class="col-md-10">
            @Html.DisplayFor(model => model.Price)
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-md-1">Quantity</label>
        <div class="col-md-10">
            @Html.DisplayFor(model => model.Quantity)
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-md-1">Amount</label>
        <div class="col-md-10">
            @Html.DisplayFor(model => model.Amount)
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-md-1">Status</label>
        <div class="col-md-10">
            @Html.DisplayFor(model => model.Status)
        </div>
    </div>


    @using (Html.BeginForm())
    {
        @Html.AntiForgeryToken()

        <div class="form-actions no-color">
            <input type="submit" value="Delete" class="btn btn-default" /> |
            @Html.ActionLink("Back to List", "Edit", "Orders", new { id = Model.OrderID }, null)
        </div>
    }
</div>

Add order item delete support
Add order item delete support
