All about types of Action Results in the Web API

added by DotNetKicks
8/16/2019 8:56:47 PM

1 Kicks, 348 Views

While building an API, the client should receive a proper and descriptive HTTP response message for each request. The Web API provides a very simple approach to achieve this. A Web API controller action can return the following types: void HttpResponseMessage IHttpActionResult Other types, such as IEnumerable, object, collections, etc.