I send data by ajax to mvc controller.
I get to the correct method but without data.
I tried to get List<string>
but its null
js code:
function sendDataCreateMilestone(parameters) {
$.ajax({
url: "/QRCNew/create",
type: "post",
dataType: "json",
data: JSON.stringify(parameters)
});
}
server:
here i revived all the time null
public ActionResult Create (List<string> ids, string collection)
{
do....
}