liveBook · Manning

Result resource

An action result is an abstraction representing the outcome or response produced by an API action, including a typed value or HTTP response.

How 4 Manning books explain it

ASP.NET Core in Action, 3e

ActionResult<T> is an ASP.NET Core MVC result type that allows an action method to return either a typed value or an arbitrary HTTP action result.

How it is used
Lets a web API action return typed data on success or another HTTP result for an error.
How deep it goes
Works through a conditional controller action and response behavior, without examining the result type’s internals.
Examples
Uses a fruit lookup returning a string or NotFound(), plus a currency-conversion action tested with supplied input.
What you can do after
Apply it via ASP.NET Core MVC to write an API action with typed success and error return paths.

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

Building Web APIs with ASP.NET Core

ActionResult is an ASP.NET Core action return type that can represent either a typed response value or an HTTP action result.

How it is used
Handles successful typed responses and HTTP error results from one ASP.NET Core action.
How deep it goes
Explains the generic return-type change and manual validation branches, stopping short of framework internals.
Examples
Uses the Domains GET action, invalid pageSize and sortOrder queries, and browser Network-tab status inspection.
What you can do after
Apply it via ASP.NET Core MVC to return typed data or structured HTTP errors from one action.

Read how Building Web APIs with ASP.NET Core explains result resource →

Pro ASP.NET Core 7, Tenth Edition

An action result is an object representing a response produced by an MVC action method.

How it is used
Represents responses produced by MVC action methods, including rendered views, redirects, and authorization prompts.
How deep it goes
Defines the response abstraction and reuse role, while deferring detailed result types and usage patterns.
Examples
Uses ViewResult, RedirectResult, HttpUnauthorizedResult, and a HomeController action returning a view.
What you can do after
Apply it via MVC action methods to encapsulate reusable HTTP responses.

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

.NET in Action, Second Edition

ActionResult is an ASP.NET Core result abstraction that represents the outcome of handling a web request, including its response content and HTTP status code.

How it is used
Controls response content and status codes when a minimal API needs more than the default successful response.
How deep it goes
Demonstrates conditional result selection and several built-in response types without detailing their internal implementations.
Examples
Uses ASCII-art content, invalid-font handling, and a JPEG barcode endpoint to demonstrate response choices.
What you can do after
Apply built-in Results methods to return content, not-found responses, and files from minimal API endpoints.

Read how .NET in Action, Second Edition explains result resource →

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.