You specified a value for id when you put /foo/bar/test in the address bar of the browser. You essentially call the Bar method with the "test" parameter in your foo controller. Your simple view does not matter when viewing directly.
To answer your last question, you may need to re-examine the way you use MVC.
Seth Aug 05 2018-11-11T00: 00Z
source share