@model CD67.ModeleMVC.Entity.TypeViking @{ ViewBag.Title = "Create"; Layout = "~/Views/Shared/_Layout.cshtml"; } Type de Vikings

Creation

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

Type de Viking


@Html.ValidationSummary(true, "", new { @class = "text-danger" }) @*Contenu généré mais masqué car inutile, la clé est générée automatiquement dans mon exemple par un trigger/sequence*@ @*
@Html.LabelFor(model => model.ID, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.ID, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.ID, "", new { @class = "text-danger" })
*@
@Html.LabelFor(model => model.Libelle, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.Libelle, new { htmlAttributes = new { @class = "form-control autofocus" } }) @Html.ValidationMessageFor(model => model.Libelle, "", new { @class = "text-danger" })
}