Пример #1
0
        public async Task <int> AddUpdate(WebBuilderInfo webBuilderInfo, string rootPath)
        {
            WebBuilderDataProvider objDataProvider = new WebBuilderDataProvider();
            WBCachehelper          objCache        = new WBCachehelper();

            objCache.RemoveCacheByPageName(webBuilderInfo.PageName.ToLower(), false, rootPath);
            return(await objDataProvider.AddUpdate(webBuilderInfo));
        }
Пример #2
0
        public async Task <int> AddUpdatePublished(WebBuilderInfo webBuilderInfo, string rootPath)
        {
            int webBuilderID = await AddUpdate(webBuilderInfo, rootPath);

            WebBuilderDataProvider objDataProvider = new WebBuilderDataProvider();

            if (webBuilderID > 0)
            {
                await objDataProvider.AddUpdatePublished(webBuilderID, webBuilderInfo.SiteID);

                WBCachehelper objCache = new WBCachehelper();
                objCache.RemoveCacheByPageName(webBuilderInfo.PageName.ToLower(), true, rootPath);
            }
            return(webBuilderID);
        }