title: ASP.NET MVC NonAction meaning
body: <p>Can anybody please tell me why should I use the <code>NonAction</code> attribute? I mean say I have a form with several submit values: Update, Delete or Insert. Since all the submit buttons have the same form in common I'm switching the submit value inside the controller and act accordingly.</p>
  <p>Like this:</p>
  <pre><code>public ActionResult asd(string submitButton){
       switch(submitButton){
           case &quot;Insert&quot;:
               return Insert();
           // bla bla bla
       }
  }
  
  [NonAction]
  public ActionResult Insert(){
      // some code inside here
      return View();
  }
  </code></pre>
  <p>Once again, why should I use NonAction instead of something like this:</p>
  <pre><code>public void Insert(){
      // some code inside here
  }
  </code></pre>