Advanced Model Binding vs 2010
- by user281180
Can I have an example of advanced model binding using ajaxpost?
I have two classes Person and Test as follows:
public class person{
public ArrayList Name = new ArrayList();
public Test []test {get;set;}
}
public class Test
{
public int ID{get;set;}
public int mark{get;set;}
}
My Controller could be
[HttpPost]
public EmptyResult CaseTest(Person person)
{
return new EmptyResult();
}
How do I post the values from the view?