Model View Controller (MVC) Question:
Download Job Interview Questions and Answers PDF
What is the significance of NonActionAttribute?
![MVC Interview Answer MVC Interview Question](https://globalguideline.com/public/images/interview/29.png)
Answer:
In general, all public methods of a controller class are treated as action methods. If you want prevent this default behaviour, just decorate the public method with NonActionAttribute.
Download MVC Interview Questions And Answers
PDF
Previous Question | Next Question |
Name a few different return types of a controller action method? | What is the significance of ASP.NET routing? |