The section #add-a-controller describe how to add a new controller for <.aspnetcore21 (in the issue scope younger versions are not interested), it just use ApiControllerAttribute to decorate controller that allow controller responds to web API requests. Besides, ApiControllerAttribute was introduced at aspnetcore21 (https://docs.microsoft.com/ru-ru/dotnet/api/microsoft.aspnetcore.mvc.apicontrollerattribute?view=aspnetcore-2.2#applies-to) and it cannot be used in [.aspnetcore10;.aspnetcore20], so this describes is incorrect for <.aspnetcore21.
If I miss something, please let me know about it.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: 583ae3e7-5915-f22b-e54c-6c100cf2a7da
Version Independent ID: 95f2549e-29f9-e31a-b4d0-432b971643ff
The section #add-a-controller describe how to add a new controller for
<.aspnetcore21
(in the issue scope younger versions are not interested), it just useApiControllerAttribute
to decorate controller that allow controller responds to web API requests. Besides,ApiControllerAttribute
was introduced ataspnetcore21
(https://docs.microsoft.com/ru-ru/dotnet/api/microsoft.aspnetcore.mvc.apicontrollerattribute?view=aspnetcore-2.2#applies-to) and it cannot be used in [.aspnetcore10
;.aspnetcore20
], so this describes is incorrect for<.aspnetcore21
.If I miss something, please let me know about it.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.