一.BaseController.cs文件 1.OnActionExecuting方法,该方法可以被各子Controller重写 protected override void OnActionExecuting(ActionExecutingContext filterContext) { //do this in OnActionExecuting instead of constructor to //A) make sure the child class has fully initi…