public ActionResult Index(IContent currentContent)
        {
            var startPage = _contentRepository.Get <PageData>(ContentReference.StartPage);
            var model     = new BlockEditPageViewModel(startPage, currentContent);

            return(View(model));
        }
Ejemplo n.º 2
0
        // GET: Preview
        public ActionResult Index(IContent currentContent)
        {
            var contentRepository = ServiceLocator.Current.GetInstance <IContentRepository>();
            var startPage         = contentRepository.Get <PageData>(ContentReference.StartPage);
            var model             = new BlockEditPageViewModel(startPage, currentContent);

            return(View(model));
        }