There seems to be several examples about web api and the data binder, however none of them seem to work well if I have a custom service that is posting the options.data object. The Sort/Filters don't bind and are null.
Any help would be great or if there is a different way to easily post the DataSourceRequest via a service.
Here is a boiled down example:
API Controller:
public DataSourceResult PageList(HttpRequestMessage requestMessage) { DataSourceResult result; var request = requestMessage.Content.ReadAsAsync<DataSourceRequest>().Result;// request.Sorts is null although the actual HTTP request was posted correctly. result = _someService.GetAllQ().ToDataSourceResult(request); return result; }Kendo Datasource Transport:
transport: { read: function (options) { api.dosomething.pageList(options.data).then(function (data) { //this is posted options.success(data); });}