@model ParcelWeb.Core.Domain.Package @using ParcelWeb.Core; @{ ViewBag.Title = "Create"; }

Add Package

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

PackageDetail

@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",placeholder="Name" } }) @Html.ValidationMessageFor(model => model.Name, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Price, htmlAttributes: new { @class = "label-control col-md-3" })
@Html.EditorFor(model => model.Price, new { htmlAttributes = new { @class = "form-control", placeholder = "Price" } }) @Html.ValidationMessageFor(model => model.Price, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.ShortDescription, htmlAttributes: new { @class = "label-control col-md-3" })
@Html.EditorFor(model => model.ShortDescription, new { htmlAttributes = new { @class = "form-control", placeholder = "Short Description" } }) @Html.ValidationMessageFor(model => model.ShortDescription, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.LongDescription, htmlAttributes: new { @class = "label-control col-md-3" })
To Make Points,Please Write Each Point in New Line @*@Html.TextAreaFor(model => model.LongDescription, new { htmlAttributes = new { @class = "form-control" } })*@ @Html.ValidationMessageFor(model => model.LongDescription, "", new { @class = "text-danger" })
Cancel
}
@Html.ActionLink("Back to List", "Index")
@section Scripts { @Scripts.Render("~/bundles/jqueryval") }