Here is my Action Mehtod
public JsonResult GetById(IEnumerable<Guid> idList)
{
//.....
}
And my JavaScript . I'm making an array of strings using li element's id property
var idArr = [];
var list = $("#ulApplications li");
$.each(list, function () { idArr.push($(this).attr("id")) });
$.ajax(
{
type: "GET",
url: "/rolemanagement/application/GetById/",
contentType: false,
datatype: "json",
data: { 'idList': idArr },
success:........
On my Action method I'm not getting any data.It seems I'm Missing something. thanks
postwith your array instead to simplify this. Just usedata: idArrand it should map the only data item