Esempio n. 1
0
        protected AdministrationPageViewModel PopulateAdminPageViewModel(string pageName)
        {
            var pageData = pageService.GetPageFor(pageName).To <AdministrationPageViewModel>().FirstOrDefault();

            var pageNames = pageService.GetAllPageNames();

            pageData.PageNames = pageNames;

            return(pageData);
        }
Esempio n. 2
0
        public IActionResult Page(string Name)
        {
            var page = pagesService.GetPageFor(Name).To <PageViewModel>().FirstOrDefault();

            return(View(page));
        }