Your code doesn't attempt to pass any data to the
/api/Employees
endpoint.
The manual has an example of how you would do that:
ajax.data[
^]
Eg:
"ajax": {
"url": "/api/Employees",
"type": "GET",
"data": function ( d ) {
d.extra_search = $('#extra').val();
}
}
Since you're making a
GET
request, the data will be passed in the querystring. If you want to pass the data in the body instead, then change your endpoint and your datatable configuration to use a
POST
request instead.