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

書籍編輯


@Html.ValidationSummary(true, "", new { @class = "text-danger" }) @Html.HiddenFor(model => model.書號)
@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" })
@if (Model.圖示 == "") { @:無圖示 } else { }
@Html.ActionLink("返回列表", "Index")