Top "Routeattribute" questions

The route template cannot start with a '/' or > '~' character and it cannot contain a '?' character

I am getting the an exception with the following route attribute: [Route("{id}?action=decline")] Exception: An exception of type …

asp.net-web-api asp.net-web-api2 routeattribute
WebApi2 Attribute Routing 404

I upgraded an existing MVC4/WebAPI1 project to MVC5/WebAPI2 in Visual Studio 2012 as described here. The site worked as …

asp.net-web-api routeattribute