Beispiel #1
0
 public void OnActionExecuted(ActionExecutedContext filterContext)
 {
     //保证业务逻辑错误也能回滚
     if (filterContext.Exception == null)
     {
         BaseService.CommintTransaction();
     }
     else
     {
         BaseService.RollbackTransaction();
     }
 }