public ActionResult Index(IContent currentContent) { var startPage = _contentRepository.Get <PageData>(ContentReference.StartPage); var model = new BlockEditPageViewModel(startPage, currentContent); return(View(model)); }
// 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)); }