ActionMethods.md - brainchildservices/curriculum GitHub Wiki
Slide 1
What are Action Methods?
- All the public methods of a controller class are known as Action Methods.
- Because they are created for a specific action or operation in the application.
- So, a controller class can have many related action methods.
- For example, adding a Student is an action.
- Modifying the student data is another action.
- Deleting a student is another action.
- So, the point that you need to remember is all the related actions should be created inside a particular controller.
- An action method can return several types. Let us modify the HomeController as shown below where we have one more method which returns Create Page.
- Action Method without A View() returning would not be accessible. That would make error.
- REF Link: