public async Task <ActionResult> Create( PagesViewModel applicationPage, long[] childernPages) { if (ModelState.IsValid) { applicationPage.Page.Active = true; applicationPage.Page.NamesUpdated = true; await PageManager.CreatePageAsync(page : applicationPage.Page, parentPages : null, childernPages : childernPages); return(RedirectToAction("Index")); } return(View(applicationPage)); }