I have the following controller method signature:
public void DiscoveryMailboxAnnotate(string note, List<string> ids)
And I am trying to post the following javascript object to this method:
var data = {
note: 'note',
ids: ['1','2']
};
$.ajax({
type: "POST",
url: '/Supervise/DiscoveryMailboxAnnotate',
data: data,
error: function (xhr, status, error) {
},
success: function (response) {
}
});
The note parameter in my controller method is populated but not the List<string> id parameter. What am I doing wrong?