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 'GetSingleSample' is already in the route collection. Route names must be unique.
Parameter name: name
__NOTE__:
1. This issue existing for MVC Attribute Routing too. We need to fix it there too.
2. 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 'GetSingleSample' is already in the route collection. Route names must be unique.
Parameter name: name
__NOTE__:
1. This issue existing for MVC Attribute Routing too. We need to fix it there too.
2. Also while fixing this bug, we need to think of how can one generate Uri links based on particular route-prefixes too.