I send data by ajax to mvc controller.
i got to correct method but without data.
i tried to get List or strong all the time 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....
          }
 
Aucun commentaire:
Enregistrer un commentaire