From 9c0c949715aaeb5bf83dbdcc857cbefdd21d8126 Mon Sep 17 00:00:00 2001 From: Tom Dykstra <1569635+tdykstra@users.noreply.github.com> Date: Tue, 17 Dec 2024 14:15:47 -0800 Subject: [PATCH] CreateAsync -- GetById --- aspnetcore/web-api/action-return-types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/web-api/action-return-types.md b/aspnetcore/web-api/action-return-types.md index b51d3273eca4..53fb9327cfb8 100644 --- a/aspnetcore/web-api/action-return-types.md +++ b/aspnetcore/web-api/action-return-types.md @@ -81,7 +81,7 @@ In the preceding action: * A 201 status code is generated by the convenience method when a product is created. The following code is an alternative to calling `CreatedAtAction`: ```csharp - return new CreatedAtActionResult(nameof(CreateAsync), + return new CreatedAtActionResult(nameof(GetByIdAsync), "Products", new { id = product.Id }, product);