public void OnResultExecuting(ResultExecutingContext filterContext)
        {
            var model = filterContext.Controller.ViewData.Model;

            var layoutModel = model as IPageViewModel <GlobalBasePage>;

            if (layoutModel != null)
            {
                var viewModel = new ViewModelFactory(BlockHelper.Service, EpiServerDependencies.Service);
                var layout    = viewModel.CreateLayoutViewModel(layoutModel.CurrentPage);
                layoutModel.Layout = layout;
            }
        }