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);