From 6ca6a5666fe5239098a5ff3349908dcbdc9aa77f Mon Sep 17 00:00:00 2001 From: InoueKonoha Date: Fri, 2 Jun 2017 08:11:09 +0800 Subject: [PATCH] Update parameter type of GetById in POST example (#3446) --- aspnetcore/includes/webApi/end.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/includes/webApi/end.md b/aspnetcore/includes/webApi/end.md index aa23ea936..6bca6b52c 100644 --- a/aspnetcore/includes/webApi/end.md +++ b/aspnetcore/includes/webApi/end.md @@ -37,7 +37,7 @@ You can use the Location header URI to access the resource you just created. Rec ```csharp [HttpGet("{id}", Name = "GetTodo")] -public IActionResult GetById(string id) +public IActionResult GetById(long id) ``` ### Update @@ -54,4 +54,4 @@ public IActionResult GetById(string id) The response is [204 (No Content)](http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html). -![Postman console showing 204 (No Content) response](../../tutorials/first-web-api/_static/pmd.png) \ No newline at end of file +![Postman console showing 204 (No Content) response](../../tutorials/first-web-api/_static/pmd.png)