I need to use the required attribute, so the field shoud not be empty
<input type="text" class="form-control" id="inputName" required>
in the razor view, more specifically in this example
@Html.EditorFor(model => model.exclure.libelle, new { htmlAttributes = new { @class = "form-control" } })
libellerequired in the model?