Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jchannon committed Oct 10, 2017
1 parent 015ce0b commit ddb3dd5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ Other extensions include:
```
this.Get("/actors/{id:int}", async (req, res, routeData) =>
{
var person = actorProvider.Get(routeData.AsInt("id"));
var person = actorProvider.Get(routeData.As<int>("id"));
await res.Negotiate(person);
});
```
(ii)
```
this.Get("/actors/{id:int}", async (ctx) =>
{
var person = actorProvider.Get(ctx.GetRouteData().AsInt("id"));
var person = actorProvider.Get(ctx.GetRouteData().As<int>("id"));
await ctx.Response.Negotiate(person);
};
```
Expand Down Expand Up @@ -86,7 +86,7 @@ public class ActorsModule : BotwinModule

this.Get("/actors/{id:int}", async (req, res, routeData) =>
{
var person = actorProvider.Get(routeData.AsInt("id"));
var person = actorProvider.Get(routeData.As<int>("id"));
await res.Negotiate(person);
});

Expand Down

0 comments on commit ddb3dd5

Please sign in to comment.