@model BuildFeed.Models.ViewModel.RegistrationUser @{ ViewBag.Title = "Register for an account | BuildFeed"; Html.EnableClientValidation(); Html.EnableUnobtrusiveJavaScript(); }

Register for an account

@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)
@Html.LabelFor(model => model.ConfirmPassword, new { @class = "control-label col-md-2" })
@Html.PasswordFor(model => model.ConfirmPassword, new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.ConfirmPassword)
@Html.LabelFor(model => model.EmailAddress, new { @class = "control-label col-md-2" })
@Html.TextBoxFor(model => model.EmailAddress, new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.EmailAddress)
} @section Scripts { @Scripts.Render("~/bundles/jqueryval") }