Guys, Im calling a JsonResult but the "getJSON" is sending a null parameter to controller.
In JS I have this...
var ID = $("#Id").val();
$.getJSON("/Orders/JSON", ID, function (data) {
....
};
The var ID has a valid value. I don't know where I'm going wrong.
public JsonResult JSONEnvolvidosPedido(string ped)
{
...
}
What am I missing?
Tks.