Esempio n. 1
0
        public virtual async Task <ActionResult> Index()
        {
            var defaultPage = await _pagesService.GetWebsiteDefaultPageAsync();

            if (defaultPage != null)
            {
                //Current page editor page URL (for Admin User)
                ViewBag.AdminEditCurrentPage =
                    $"PopupWindows('{Url.Action("Editor", "ManagePages", new { area = "Admin" })}', 'PageEditor', 1200, 670, {{ id: {defaultPage.Id} }}, 'get')";

                return(View("../Page/Index", defaultPage));
            }

            return(View());
        }