@model WebApplication1.Models.user @{ ViewBag.Title = "Login"; }

Login

@using (Html.BeginForm()) { @Html.AntiForgeryToken()

user


@Html.ValidationSummary(true, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.usename, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.usename, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.usename, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.password, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.password, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.password, "", new { @class = "text-danger" })

}
@Html.ActionLink("don't have an account? register now", "Register")