@model MyHN.Application.CreateLinkCommand
@{
  ViewData["Title"] = "Ajouter un nouveau lien";
}

<h1>Publication d'un lien</h1>

@* <a asp-controller="Links" asp-action="Create">Liste des liens</a> *@

<form asp-action="Create" method="post">
  <div asp-validation-summary="All"></div>

  <div>
    <label asp-for="@Model.Url"></label>
    <input asp-for="@Model.Url" />
    <span asp-validation-for="@Model.Url"></span>
  </div>

  <button type="submit">Publier le lien</button>
</form>