Can we make action methods as protected in mvc

No we cannot make action methods as protected in mvc. When we change the access modifier as protected for action method, the build succeeded message come but when we will run this we get an error.

3

This error comes for all access modifier apart from public. Let’s make as public and run this application.
4
Happy Coding :)

Tags: , , ,