Adding Queryable Support to ASP.NET Web API Controller Action Methods

In this article I will show that how we can make our Web API methods queryable so the user can apply query operators and expressions to filter data. We will use OData library for ASP.NET Web API that have the [Queryable] attribute provided, which facilitates in issuing queries. 1. Create ASP.Net Web API Project 2. Add [...]


Creating Custom Formatter in ASP.NET Web API for specific formatted response

In this article I will show you how to create a custom formatter in ASP.Net Web API to send formatted response. Before diving into deep, let me give you a quick introduction to formatters Formatters in ASP .NET Web API plays an important role, when the request comes to the server, depending on the media-type, [...]