Web API Fall Update – ODataResult<T>

Another great featureĀ  Web API team has provided support for Server side paging and $inlineCount is called oDataResult<T>

It is really easy to achieve this. Earlier you could return the data but you will have to rely on other mechanisms to achieve $inlineCount.

Step1: Change your return type of the controller action to oDataResult<T>.

Assuming your resource is available at



Step2: Execute the request.


Now you can get the count and a navigation path both.