IActionResult
noun
say it: “EYE AK-shun rih-ZULT” /aɪ ˈækʃən rɪˈzʌlt/
The return type for a controller action that may send back different kinds of responses, such as a view or a redirect.
What is IActionResult?
IActionResult (and ActionResult<T>) lets a controller action return different responses: Ok(...), NotFound(), BadRequest(...), CreatedAtAction(...).
In a sentence
- “Details returns IActionResult, so it can send the view or NotFound().”
Level: Apprentice · More ASP.NET Core terms at this level
Updated