$.ajax({
url: '/Project/GetItemsBySearchKey',
type: 'POST',
dataType: "json",
data: {
searchKey: "text",
exclussionList: [10,11]
},
success: function (data) {
alert(data);
}
});
I have this is javascript and below function in c# MVC controller
public ActionResult GetItemsBySearchKey(string searchKey, List<long> exclussionList)
The value in the searchKey get in controller buT the exclussionList become null always What is the error in my codes