For corrected post data you must serialize the model
data: $('#FormId').serialize()
And form like:
@using ( @Html.BeginForm( "Login", "Customer", FormMethod.Post, new { id = "FormId" } ) ) { //Fields in view @Html.EditorFor(x=>x.Name) @Html.EditorFor(x=>x.Pass) }
Xordal
source share