JS source
<script src="/Script/jquery-1.5.1.min.js" type="text/javascript"></script>
<script src="/Script/jquery.json-2.2.min.js" type="text/javascript"></script>
Mapping Entity
public class someList
{
public string strOne {get; set;}
public string strTwo {get; set;}
}
public class Entity
{
public string EntityMember;
public List<someList> entityList;
}
Argument
public ActionResult MyControllerAction(Entity objEntity)
JS client
$.ajax({
url: "/MyController/MyControllerAction",
type: "POST",
data: JSON.stringify(Entity),
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function (data) {
....
}
});
My Problems