From c484128a58eb22c55495a77d07e563efb0e31441 Mon Sep 17 00:00:00 2001 From: Kirk Larkin <6025110+serpent5@users.noreply.github.com> Date: Tue, 15 Feb 2022 18:11:25 +0000 Subject: [PATCH] Link the Produces explanation to ObjectResult (#25023) --- aspnetcore/web-api/advanced/formatting.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/web-api/advanced/formatting.md b/aspnetcore/web-api/advanced/formatting.md index da4bfefba4..56b3e1a3eb 100644 --- a/aspnetcore/web-api/advanced/formatting.md +++ b/aspnetcore/web-api/advanced/formatting.md @@ -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 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 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).