hn-dotnet/Apps/Website/Views/Links/Create.cshtml
2020-12-22 10:47:22 +01:00

19 lines
434 B
Plaintext

@model HN.Application.AddLinkCommand
@{
ViewData["Title"] = "Post a new link";
}
<form class="form" method="post">
@* @Html.LabelFor(m => m.Url)
@Html.EditorFor(m => m.Url)
@Html.ValidationMessageFor(m => m.Url) *@
<div class="field">
<label asp-for="@Model.Url"></label>
<input asp-for="@Model.Url" />
<span asp-validation-for="@Model.Url"></span>
</div>
<button type="submit">Post!</button>
</form>