Mention what is the importance of nonactionattribute?
Answer / Preeti Arya
The NonAction attribute in MVC Model View Controller is used to indicate that a method in your controller should not be treated as an action method. It helps to reduce unnecessary calls and improves application performance by preventing unintended actions. For example, you might have methods in your controller for data validation or other tasks that do not correspond to a specific view but still require execution.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are action selectors in mvc?
What is partial view in mvc?
What is the difference between webforms and mvc?
Why was mvc developed?
Explain the need of display mode in mvc?
What is difference between razor and aspx in mvc?
what is get and post action types?
Who invented mvc?
Explain the role of components presentation, abstraction and control in mvc?
Mention what are the two ways to add constraints to a route?
What are viewmodels in mvc?
What are corpus tools?