Update parameter type of GetById in POST example (#3446)

pull/3455/head
InoueKonoha 2017-06-02 08:11:09 +08:00 committed by Rick Anderson
parent 4a8c19bf5c
commit 6ca6a5666f
1 changed files with 2 additions and 2 deletions

View File

@ -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)
![Postman console showing 204 (No Content) response](../../tutorials/first-web-api/_static/pmd.png)