@model ParcelWeb.Core.Dto.CreateEditDeliverySubServiceDto @using ParcelWeb.Core; @{ ViewBag.Title = "Create"; }

Add Delivery Sub Service

@using (Html.BeginForm("Edit", "DeliverySubService", FormMethod.Post, new { @class = "form form-horizontal", enctype = "multipart/form-data", role = "form", })) { @Html.AntiForgeryToken()

Sub Service Detail

@Html.ValidationSummary(true, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Name, htmlAttributes: new { @class = "label-control col-md-3" })
@Html.EditorFor(model => model.Name, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.Name, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.DeliveryServiceId, htmlAttributes: new { @class = "label-control col-md-3" })
@Html.DropDownListFor(model => model.DeliveryServiceId, ViewBag.DeliveryServices as SelectList, "--Select Service--", new { @class = "form-control" }) @* @Html.EditorFor(model => model.DeliveryServiceId, new { htmlAttributes = new { @class = "form-control" } })*@ @Html.ValidationMessageFor(model => model.DeliveryServiceId, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.EstimatedDeliveryTime, htmlAttributes: new { @class = "label-control col-md-3" })
@Html.DropDownListFor(model => model.EstimatedDeliveryTime, ViewBag.DeliveryTime as SelectList, "--Select Delivery Time--", new { @class = "form-control"}) @* @Html.EditorFor(model => model.EstimatedDeliveryTime, new { htmlAttributes = new { @class = "form-control" } })*@ @Html.ValidationMessageFor(model => model.EstimatedDeliveryTime, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Description, htmlAttributes: new { @class = "label-control col-md-3" })
@Html.EditorFor(model => model.Description, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.Description, "", new { @class = "text-danger" })
Cancel
}
@Html.ActionLink("Back to List", "Index")
@section Scripts { @Scripts.Render("~/bundles/jqueryval") }