Pradeep Yadav
What are Action methods?
By Pradeep Yadav in ASP.NET on May 26 2017
  • Rajeev Kumar
    Mar, 2023 31

    All the public methods of the Controller class are called Action methods. They are like any other normal methods with the following restrictions:

    Action method must be public. It cannot be private or protected
    Action method cannot be overloaded
    Action method cannot be a static method.

    • 0
  • Rajani Pandey
    Jan, 2018 7

    Action method can return dynamic logic.

    • 0
  • Pradeep Yadav
    May, 2017 26

    Action methods are the methods which has one to one mapping with user requests. These methods execute requests and create response. Each controller can have default action method, however it needs to be declared in RegisteRoutes() method of RouteConfig file.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS