예제 #1
0
        public Dictionary <string, string> GetContentPlaceholderBodies(int applicationId)
        {
            Dictionary <string, string> result;

            try
            {
                using (IDataStoreContext dataStoreContext = this._DataStore.CreateContext())
                {
                    result = dataStoreContext.cms_Contents_GetAllWithSectionName(
                        applicationId
                        , CMSSectionType.Content
                        , (byte)ContentBlockStatus.Active);
                }
            }
            catch (SqlException ex)
            {
                _Log.Error("Error at cms_ContentRatings_InsertOrUpdate", ex);
                throw new DataStoreException(ex, true);
            }
            return(result);
        }