News

Using HttpResponseException in ASP.NET Web API. You can use the HttpResponseException class to return specific HTTP status codes and messages from your controller methods in Web API. Here is an ...
Consume the Web API using RestSharp Now that our Web API is ready for use, let’s start consuming it. Create another project – this time a Console application project to keep it simple.
The Web API response object already includes support for a Location header. Assigning a URI instance to it tells the application to insert the appropriate header in the response. Here's the code that ...