Beispiel #1
0
        // GET: Page/Create
        public IActionResult Create()
        {
            var model = new PageViewModel
            {
                Page           = null,
                Sections       = _sectionService.GetAll().ToList(),
                ActiveSections = _sectionService.GetAllSectionsForPageWithFlag(null),
                IsInMenu       = true
            };

            return(View(model));
        }