title: c# Attributes and overriding behavior asp.net mvc
body: <p>I have a transaction attribute that performs a commit in the onactionexecuted method.</p>
  
  <p>This is specified at the controller method, for one of my actions i need to override that method and not call the code in onactionexecuted?</p>
  
  <p>Here is some sample code.</p>
  
  <pre><code>[Transaction]
  public class TestController
  {
      public ActionResult Index()
      {
          return View();
      }
  
      [NoTransaction]
      public ActionResult Test()
      {
          return View();
      }
  }
  </code></pre>
  
  <p>The [NoTransaction] attribute should override the onactionexecuted method in [Transaction].
  Is there a way to do this?</p>