@model MvcBookWeb.Models.書籍 @{ ViewBag.Title = "新增書籍功能"; }

新增書籍


@Html.ValidationSummary(true, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.書號, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.書號, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.書號, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.書名, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.書名, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.書名, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.單價, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.單價, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.單價, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.圖示, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.ActionLink("返回列表", "Index")