18 lines
408 B
Plaintext
18 lines
408 B
Plaintext
@model HN.Application.AddLinkCommand
|
|
@{
|
|
ViewData["Title"] = "Post a new link";
|
|
}
|
|
|
|
<form method="post">
|
|
<div>
|
|
@* @Html.LabelFor(m => m.Url)
|
|
@Html.EditorFor(m => m.Url)
|
|
@Html.ValidationMessageFor(m => m.Url) *@
|
|
|
|
<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>
|