Change 2.1 ActionResult heading to generic type form
parent
f120d3640c
commit
d979e409f5
|
@ -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