Esempio n. 1
0
 public override void OnActionExecuted(ActionExecutedContext filterContext)
 {
     try
     {
         if (filterContext.Exception == null)
         {
             _transactionProvider.Commit();
         }
         else
         {
             _transactionProvider.RollBack();
         }
     }
     catch (Exception ex)
     {
         _transactionProvider.RollBack();
         throw ex;
     }
 }