I am trying to pass an array of int but I can not get the value in the webapi method
var postData = { \"deletedIds\": deletedIds };
$.ajax({
typ
I suspect that the stringify bit is messing up your object - have you tried assigning it to a variable to see if it's the expected formatting?
You're stringifying the whole thing at the moment:
{ "deletedIds": deletedIds }
while what you probably want to send as post body is this:
{ "deletedIds": JSON.stringify(deletedIds) }