public void OnActionExecuted(ActionExecutedContext context) { var controller = context.Controller as BaseController; var options = optionsCache.Get().Result; var controllerActionDescriptor = context.ActionDescriptor as ControllerActionDescriptor; var result = new ViewResult(); result.ViewName = "Themes/" + options.theme + "/" + controllerActionDescriptor.ControllerName + "/" + controllerActionDescriptor.ActionName; result.ViewData = controller.ViewData; var pagelist = pageCache.GetListAsync().Result; result.ViewData.Add("pagelist", pagelist); result.ViewData.Add("options", options); context.Result = result; }