Currently the following would cause a problem, as we try to create 2 routes(one for each route prefix) with the same route name calle "GetSingleSample".
```
[RoutePrefix("api/test")]
[RoutePrefix("api/samples/test")]
public class SampleController : ApiController
{
[HttpGet("{id}", RouteName="GetSingleSample")]
public string Get(int id)
{
return "Get" + id;
}
}
```
Error:
A route named 'GetAllSamples' is already in the route collection. Route names must be unique.
Parameter name: name
Also while fixing this bug, we need to think of how can one generate Uri links based on particular route-prefixes too.
```
[RoutePrefix("api/test")]
[RoutePrefix("api/samples/test")]
public class SampleController : ApiController
{
[HttpGet("{id}", RouteName="GetSingleSample")]
public string Get(int id)
{
return "Get" + id;
}
}
```
Error:
A route named 'GetAllSamples' is already in the route collection. Route names must be unique.
Parameter name: name
Also while fixing this bug, we need to think of how can one generate Uri links based on particular route-prefixes too.