Link to ApiControllerAttribute API ref (#6313)

pull/6315/head
Scott Addie 2018-05-09 13:42:41 -05:00 committed by GitHub
parent 14506d8a3b
commit 5bc8ba8b55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ The `ControllerBase` class provides access to numerous properties and methods. I
::: moniker range=">= aspnetcore-2.1"
## Annotate class with ApiControllerAttribute
ASP.NET Core 2.1 introduces the `[ApiController]` attribute to denote a web API controller class. For example:
ASP.NET Core 2.1 introduces the [[ApiController]](/dotnet/api/microsoft.aspnetcore.mvc.apicontrollerattribute) attribute to denote a web API controller class. For example:
[!code-csharp[](../web-api/define-controller/samples/WebApiSample.Api/Controllers/ProductsController.cs?name=snippet_ControllerSignature&highlight=2)]