I want to submit a form and send Json array back to the action method in one call.
[HttpPost]
public ActionResult Add(AddQuoteRequestVM model, List<Item> itemList)
{
}
Ajax Code
form = jQuery('#createQuoteForm').serialize();
var ItemList = $.parseJSON( ko.toJSON(viewModel.ItemList()));
var data = { model: form,itemList: ItemList };
$.ajax({
url: "Add",
type: "POST",
data: data,
});
At the moment I'm getting null for both parameters on the action method.