I have emp class with Id & Name properties
class Emp
{
int id{get;set;}
int Name{get;set;}
}
@model List<Emp>
<script>
function convertJqueryModelToMVC()
{
var emps = [];
emps.push({id:1,Name:"abc"});
emps.push({id:2,Name:"xyz"});
//logic for converting emps to List<emp> model
}
</script>
I want to achieve this so that when i click on submit button all the form fields will be submitted in a single postback. This is just an example what i am trying to achieve (Note : I am aware standard MVC process)