Link the Produces explanation to ObjectResult (#25023)

pull/25021/head
Kirk Larkin 2022-02-15 18:11:25 +00:00 committed by GitHub
parent 5bb88a60d8
commit c484128a58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ To restrict the response formats, apply the [`[Produces]`](xref:Microsoft.AspNet
The preceding [`[Produces]`](xref:Microsoft.AspNetCore.Mvc.ProducesAttribute) filter:
* Forces all actions within the controller to return JSON-formatted responses.
* Forces all actions within the controller to return JSON-formatted responses for POCOs (Plain Old CLR Objects) or <xref:Microsoft.AspNetCore.Mvc.ObjectResult> and its derived types.
* Return JSON-formatted responses even if other formatters are configured and the client specifies a different format.
For more information, see [Filters](xref:mvc/controllers/filters).
@ -400,7 +400,7 @@ To restrict the response formats, apply the [`[Produces]`](xref:Microsoft.AspNet
The preceding [`[Produces]`](xref:Microsoft.AspNetCore.Mvc.ProducesAttribute) filter:
* Forces all actions within the controller to return JSON-formatted responses.
* Forces all actions within the controller to return JSON-formatted responses for POCOs (Plain Old CLR Objects) or <xref:Microsoft.AspNetCore.Mvc.ObjectResult> and its derived types.
* If other formatters are configured and the client specifies a different format, JSON is returned.
For more information, see [Filters](xref:mvc/controllers/filters).