ActionResult<T>

The return type of a controller action that can be either a typed success payload or another HTTP result, such as NotFound().

In more detail

An action can return a success value of type T or any other result, such as NotFound(), from the same method. It makes the status code explicit and documents the success type for OpenAPI.

Related terms

Taught in

References