You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
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.