public ActionResult Index(StandardPage currentPage) { var model = new StandardPageViewModel { CurrentPage = currentPage, Layout = layoutFactory.BuildRootLayout(currentPage) }; return(View(model)); }
public ActionResult Index(StartPage currentPage) { var model = new StartPageViewModel { CurrentPage = currentPage, Layout = layoutFactory.BuildRootLayout(currentPage) }; model.ChildPages = loader.GetChildren <PageData>(currentPage.ContentLink) .Filter(new FilterAccess()) .Filter(new FilterPublished()) .Filter(new FilterTemplate()) .ToList(); return(View(model)); }