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.
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

Vithal WadjePosted Dec 14, 2014, 12:55 AM
nice