internal CMSContent GetContent(string urlFriendlyName, string threadName, string sectionName, string groupName) { try { using (IDataStoreContext dataStoreContext = this._DataStore.CreateContext()) { return(dataStoreContext.cms_Contents_Get(urlFriendlyName, threadName, sectionName, groupName)); } } catch (Exception ex) { _Log.Error("Error at cms_Contents_Get", ex); throw new DataStoreException(ex, true); } }
internal List <CMSContent> GetContents(int applicationId, CMSSectionType sectionType) { try { using (IDataStoreContext dataStoreContext = this._DataStore.CreateContext()) { return(dataStoreContext.cms_Contents_Get(applicationId, sectionType).ToList()); } } catch (Exception ex) { _Log.Error("Error at cms_Contents_Get", ex); throw new DataStoreException(ex, true); } }
internal CMSContent GetContent(int contentId) { try { using (IDataStoreContext dataStoreContext = this._DataStore.CreateContext()) { return(dataStoreContext.cms_Contents_Get(contentId)); } } catch (Exception ex) { _Log.Error("Error at cms_Contents_Get", ex); throw new DataStoreException(ex, true); } }