Пример #1
0
        public static void PageUpdate()
        {
            PageArgs pageArgs = (PageArgs)PSCDialog.DataShare;
            Page     page     = pageArgs.Page;

            page.Update();
            page.UpdatePageLayout(pageArgs.Page.LayoutId);

            DataStatic["PageList"] = null;
        }
Пример #2
0
        public static void PageAdd()
        {
            PageArgs pageArgs = (PageArgs)PSCDialog.DataShare;
            Page     page     = pageArgs.Page;

            PageList.AddDB(page);
            page.UpdatePageLayout(page.LayoutId);
            // check subdomain
            Guid subId = SessionHelper.GetSession(SessionKey.SubDomain) == string.Empty ? Guid.Empty : new Guid(SessionHelper.GetSession(SessionKey.SubDomain));

            if (!(subId == Guid.Empty))
            {
                SubDomainInPage sip = new SubDomainInPage();
                sip.PageId      = page.Id;
                sip.SubDomainId = subId;
                sip.AddDB();
            }
        }