No, we cannot make a controller protected.
Let's try to make a controller protected.
Output:
When we make the controller private, protected or protected internal, it is giving a compiler error, but when we make the controller internal let's see what happens.
Let's run the application and see the output.
Let's make the controller public and run the application.
Happy Coding.
Make a Controller Protected in MVC
In this article we learn that it is possible to make a controller protected.


Vithal WadjeTOP 100Posted Dec 13, 2014, 7:55 PM EST
nice