/// <summary> /// publish store page /// </summary> /// <param name="page"></param> /// <returns></returns> public static int PublishStorePage(StorePage page) { using (var trans = TransactionManager.Create()) { //step 1 save drafts var sysNo = SaveStorePage(page); page.SysNo = sysNo; //StoreDA.SaveStorePageDraft(page); //step 2 publish StoreDA.PublishStorePage(page); trans.Complete(); } return(1); }