Change 2.1 ActionResult heading to generic type form

pull/7830/head
Scott Addie 2018-07-26 14:29:52 -05:00
parent f120d3640c
commit d979e409f5
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ public class BasicTests
For more information, see the [Integration tests](xref:test/integration-tests) topic.
## [ApiController], ActionResult
## [ApiController], ActionResult\<T>
ASP.NET Core 2.1 adds new programming conventions that make it easier to build clean and descriptive web APIs. `ActionResult<T>` is a new type added to allow an app to return either a response type or any other action result (similar to IActionResult), while still indicating the response type. The `[ApiController]` attribute has also been added as the way to opt in to Web API-specific conventions and behaviors.