@model DAL.Personne @{ IEnumerable titres = ViewBag.Titres; } @Html.ValidationSummary() @Html.DropDownListFor( m => m.TitreId, titres.Select( t => new SelectListItem() { Text = t.Civilite, Value = t.Id.ToString() } ), new { @class = "form-control" } ) @Html.TextBoxFor( m => m.Prenom, new { @class = "form-control" } ) @Html.TextBoxFor( m => m.Nom, new { @class = "form-control" } ) @Html.TextBoxFor( m => m.Telephone, new { @class = "form-control" } ) @Html.AllValidationMessagesTooltipFor( m => m.Telephone )