I can't get route value in controller constructor, if I run same line in any function it's working great but inside constructor not working, any ideas please:
[RoutePrefix("st/{id}")]
public class USERsController : ApiController
{
private Entities db = new Entities();
public USERsController()
{
var routeValue = ControllerContext.RouteData.Values["id"]; // getting error here *****
db.Configuration.ProxyCreationEnabled = false;
}
}