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