Merge pull request #7830 from aspnet/scottaddie/action-result-heading
Change 2.1 ActionResult heading to generic type formpull/7836/head
commit
5e1328327c
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue