liveBook · Manning

IActionResult

IActionResult is an ASP.NET Core MVC interface implemented by objects that represent the result of processing an HTTP request.

How 2 Manning books explain it

ASP.NET Core in Action, 3e

IActionResult is an ASP.NET Core interface representing instructions for producing an HTTP response from request-handling code.

How it is used
Directs response generation from Razor Page handlers and provides response choices for MVC and web API actions.
How deep it goes
Explains when results execute, why they separate decisions from generation, and what common result types return; stops short of implementing a custom result.
Examples
Uses HTML, redirect, file, and status-code results, plus an indexed web API action that returns data or NotFound().
What you can do after
Apply it via ASP.NET Core Razor Page handlers or controller actions to choose an appropriate response and test that choice separately.

Read how ASP.NET Core in Action, 3e explains IActionResult →

Pro ASP.NET Core 7, Tenth Edition

IActionResult is the ASP.NET Core MVC interface implemented by objects that represent the result of processing an HTTP request.

How it is used
Lets ASP.NET Core MVC controller actions select HTTP responses without writing directly to HttpResponse.
How deep it goes
Explains result-producing controller methods and demonstrates their request behavior; does not descend into IActionResult implementation internals.
Examples
Uses product GET and POST requests, PowerShell responses, redirects, and an HTML action returning a product view model.
What you can do after
Apply it via ASP.NET Core MVC to return status-code, redirect, or view results from controller actions.

Read how Pro ASP.NET Core 7, Tenth Edition explains IActionResult →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.