How to append whole set of model to formdata and obtain it in MVC
If your view is based on a model and you have generated the controls inside <form> tags, then you can serialize the model to FormData using var formdata = new FormData($(‘form’).get(0)); This will also include any files generated with <input type=”file” name=”myImage” …/> and post it back using $.ajax({ url: ‘@Url.Action(“YourActionName”, “YourControllerName”)’, type: ‘POST’, data: … Read more