protected override void OnActionExecuting(ActionExecutingContext filterContext) { if (Session["CurrentOIM"] != null) { currentOIM = (UserModel)Session["CurrentOIM"]; } else { currentOIM = ServiceSystem.GetCurrentOIM(); Session["CurrentOIM"] = currentOIM; } base.OnActionExecuting(filterContext); }