protected AdministrationPageViewModel PopulateAdminPageViewModel(string pageName) { var pageData = pageService.GetPageFor(pageName).To <AdministrationPageViewModel>().FirstOrDefault(); var pageNames = pageService.GetAllPageNames(); pageData.PageNames = pageNames; return(pageData); }
public IActionResult Page(string Name) { var page = pagesService.GetPageFor(Name).To <PageViewModel>().FirstOrDefault(); return(View(page)); }