// GET: Admin/Pages/Create
 public IActionResult Create()
 {
     ViewData["GroupID"] = new SelectList(_pageGroupRepository.GetAllPageGroups(), "GroupID", "GroupTitle");
     return(View());
 }
Пример #2
0
 // GET: Admin/PageGroups
 public async Task <IActionResult> Index()
 {
     return(View(_pageGroupRepository.GetAllPageGroups()));
 }