Multiple choice technology web technology

How does controller identify a method as an action method?

  1. Method with ActionResult keyword

  2. All methods

  3. All methods except non-public methods

  4. All of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

By default, the controller treats all public methods as potential action methods. Non-public methods (private, protected) are not considered actions. Special attributes like [NonAction] can also exclude public methods from being actions.