I have a transaction attribute that performs a commit in the onactionexecuted method.
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?
Here is some sample code.
[Transaction]
public class TestController
{
public ActionResult Index()
{
return View();
}
[NoTransaction]
public ActionResult Test()
{
return View();
}
}
The [NoTransaction] attribute should override the onactionexecuted method in [Transaction]. Is there a way to do this?