@model BuildFeed.Models.ViewModel.LoginUser @{ ViewBag.Title = "Login | BuildFeed"; Html.EnableClientValidation(); Html.EnableUnobtrusiveJavaScript(); }

Login to BuildFeed

@using (Html.BeginForm()) { @Html.AntiForgeryToken() if (ViewData["ErrorMessage"] != null) {

@ViewData["ErrorMessage"]

}
@Html.LabelFor(model => model.UserName, new { @class = "control-label col-md-2" })
@Html.TextBoxFor(model => model.UserName, new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.UserName)
@Html.LabelFor(model => model.Password, new { @class = "control-label col-md-2" })
@Html.PasswordFor(model => model.Password, new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.Password)
} @section Scripts { @Scripts.Render("~/bundles/jqueryval") }