I am wondering if its possible to use the same parameter name in URL routes using ASP.NET WebAPI.
For example
[HttpGet]
[Route("{userid}")]
[HttpGet]
[Route("{userid}/customers")]
[HttpGet]
[Route("{userid}/orders")]
When i have the routes set up like this i get an error saying there are multiple actions for this request. However
[HttpGet]
[Route("{userid}")]
[HttpGet]
[Route("{userid2}/customers")]
[HttpGet]
[Route("{userid3}/orders")]
works.
Any thoughts?