EDIT :- Changed original answer from a GET to a POST.
Assuming the code you posted is in the FilterController, the GetAll method normally does not take parameters and is used to get all the products. If you want to populate your dynamic there you should change it to a POST like so..
$.ajax({
type: 'POST',
url: '/api/filter/GetAllProducts,
data: JSON.stringify( product ),
contentType: 'application/json',
success: function (data) {
//alert("succeeded");
},
error: function (err, data) {
alert("Error " + err.responseText);
}
});
then adorn you controller with the HttpPost attribute
[HttpPost]
public IEnumerable<Products> GetAllProducts(dynamic parameters)
{
return null;
}