What is significance of NonActionAttribute?

What is significance of NonActionAttribute?



-Usually, MVC consider all public methods of a controller class as action methods.

-You can make some of the methods as non action methods by using the NonActionAttribute attribute.

-For example
[NonAction]
private void DoSomething()
{
}
Post your comment