Пример #1
0
        internal int Delete(int contentId, bool deleteLinkedThreads)
        {
            int result;

            try
            {
                using (IDataStoreContext dataStoreContext = this._DataStore.CreateContext())
                {
                    result = dataStoreContext.cms_Contents_Delete(contentId, deleteLinkedThreads);
                }
            }
            catch (Exception ex)
            {
                _Log.Error("Error at cms_Contents_Delete", ex);
                throw new DataStoreException(ex, true);
            }
            return(result);
        }