what is NonActionAttribute in mvc by default mvc treats all public methods in a controller as action methods. U can mark some of the methods as non action methods using the NonActionAttribute attribute. Eg. [NonAction] private void DoSomething() { }