What are main return types supported in Web API?

The Web API action method can have following return types.

  1. Void.
  2. Primitive type or Complex type.
  3. HttpResponseMessage.
  4. IHttpActionResult.

For More Information Please Refer: https://www.tutorialsteacher.com/webapi/action-method-return-type-in-web-api