Merge pull request #7830 from aspnet/scottaddie/action-result-heading

Change 2.1 ActionResult heading to generic type form
pull/7836/head
Scott Addie 2018-07-26 16:28:32 -05:00 committed by GitHub
commit 5e1328327c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.