随笔 - 66  文章 - 0 评论 - 613 trackbacks - 3

public override void OnActionExecuted(ActionExecutedContext context) {
    if (context.Exception != null) {
        context.Result = new JsonResult(new APIReturn(-1, context.Exception.Message));
    }
}
posted on 2016-09-05 16:26 nicye 阅读(...) 评论(...) 编辑 收藏