I have two controllers, routes of which nested. Both use REST. Problem is, I cannot call child route, as parent actions blocking them
[RoutePrefix("api/foo")]
public class FooController : ApiController
{
[Route("{id}")]
public Workflow Get(int id)
{
////
}
}
[RoutePrefix("api/foo/types")]
public class FooTypesController : ApiController
{
public Workflow Get()
{
////
}
}
If call api/foo/types
, I am getting
The parameters dictionary contains a null entry for parameter 'id' of non-nullable type 'System.Int32' for method 'Get(Int32)'