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

Create a new user

@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.PasswordFor(model => model.password, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.password, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.displayname, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.displayname, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.displayname, "", new { @class = "text-danger" })

}
@Html.ActionLink("already have an account? Login", "Login")