Mention what is the importance of nonactionattribute?



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

Post New Answer

More MVC Model View Controller Interview Questions

Is mvc a layered architecture?

1 Answers  


Is angular mvvm or mvc?

1 Answers  


What is the use of viewbag in mvc?

1 Answers  


What is partial view in mvc?

1 Answers  


What does Model, View and Controller represent in an MVC application?

1 Answers   NA,


Mention what are main benefits of using mvc?

1 Answers  


What are main benefits of using mvc?

1 Answers  


What is the difference between asynchronous and synchronous actions? When would you use asynchronous actions?

1 Answers  


Which is a better fit, razor or aspx?

1 Answers  


What are the filters?

1 Answers  


Mention what are the file extensions for razor views?

1 Answers  


What is the use of spring mvc?

1 Answers  


Categories