Store model id when the route parameter is an entire model
Add public method to filter routes