What is the use of IHttpActionResult And What Its Return Type in WebAPI ? [Resolved]

Posted by Kasani007 under ASP.NET Web API on 12/22/2016 | Points: 10 | Views : 509 | Status : [Member] | Replies : 1
What is the use of IHttpActionResult And What Its Return Type in WebAPI ?




Responses

Posted by: A2H on: 12/24/2016 [Member] [MVP] Silver | Points: 50

Up
0
Down

Resolved
IHttpActionResult is a interface which defines an HttpResponseMessage factory. IHttpActionResult contains one any only one method called “ExecuteAsync”. This method will creates an HttpResponseMessage instance.

Return type for I HTTPActionResult is an HTTP Response

Reference URL : https://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/action-results


Thanks,
A2H
My Blog

Kasani007, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response