httpasp.net-mvc-2http-posthttp-getacceptverbs

What is the default behaviour of a controller action not marked with AcceptVerbs, HttpGet or HttpPost?


If I create a controller action and do not decorate it with AcceptVerbs, HttpPost or HttpGet. What is the default behaviour?

Does the action allow any access method or does it default to GET?


Solution

  • It's accessible via any verb.