@model Projects.Models.User @{ ViewBag.Title = "Login"; }

@ViewBag.Title

@using (Html.BeginForm()) { @Html.AntiForgeryToken() @Html.ValidationSummary(true, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.login, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.login, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.login, "", 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" })
}