From 5331a0b962d654a2173aec914dd6054e94006ea5 Mon Sep 17 00:00:00 2001 From: Scott Addie Date: Wed, 9 May 2018 14:01:57 -0500 Subject: [PATCH] Add link to ActionResult API ref (#6315) --- aspnetcore/web-api/action-return-types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/web-api/action-return-types.md b/aspnetcore/web-api/action-return-types.md index f0b6ad9692..2ae9749bd9 100644 --- a/aspnetcore/web-api/action-return-types.md +++ b/aspnetcore/web-api/action-return-types.md @@ -70,7 +70,7 @@ The preceding action's other known return code is a 201, which is generated by t ::: moniker range=">= aspnetcore-2.1" ## ActionResult\ type -ASP.NET Core 2.1 introduces the `ActionResult` return type for Web API controller actions. It enables you to return a type deriving from [ActionResult](/dotnet/api/microsoft.aspnetcore.mvc.actionresult) or return a [specific type](#specific-type). `ActionResult` offers the following benefits over the [IActionResult type](#iactionresult-type): +ASP.NET Core 2.1 introduces the [ActionResult\](/dotnet/api/microsoft.aspnetcore.mvc.actionresult-1) return type for Web API controller actions. It enables you to return a type deriving from [ActionResult](/dotnet/api/microsoft.aspnetcore.mvc.actionresult) or return a [specific type](#specific-type). `ActionResult` offers the following benefits over the [IActionResult type](#iactionresult-type): * The [[ProducesResponseType]](/dotnet/api/microsoft.aspnetcore.mvc.producesresponsetypeattribute) attribute's `Type` property can be excluded. * [Implicit cast operators](/dotnet/csharp/language-reference/keywords/implicit) support the conversion of both `T` and `ActionResult` to `ActionResult`. `T` converts to [ObjectResult](/dotnet/api/microsoft.aspnetcore.mvc.objectresult), which means `return new ObjectResult(T);` is simplified to `return T;`.