top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What are Non Action methods in ASP.Net MVC?

+1 vote
792 views
What are Non Action methods in ASP.Net MVC?
posted Aug 26, 2016 by Latha

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

In ASP.Net MVC all public methods have been treated as Actions. So if you are creating a method and if you do not want to use it as an action method then the method has to be decorated with "NonAction" attribute as shown below :

[NonAction]
public void TestMethod()
{
// Method logic
}
answer Aug 27, 2016 by Shivaranjini
...