You actually want to add <HttpGet>
to the SymbolExists
method as well as adding to the GetSymbols
method.
The reason is that your GetSymbols()
works because your <RoutePrefix>
and the controller name matches the global route. You shouldn't rely on that, as it's fragile and will break you unexpectedly.
The rule of thumb here: If you have many of your actions AttributeRouted make all of them so. It's probably ok to use AttributeRoute to replace the URL for one or two actions on your controller.