Esempio n. 1
0
        public List <T> GetContentList <T>(long SourceId, Common.Enumeration.ContentSourceType SourceType, int LanguageId) where T : GenericContent, new()
        {
            var dalAPI = new EktronAPI.Content.ContentAPI();

            return(dalAPI.GetList <T>(SourceId, Common.Enumeration.ContentSourceType.Folder, 50, 1));
            //return dalAPI.GetAll<T>(SourceId, Common.Enumeration.ContentSourceType.Folder, 1033);
        }
Esempio n. 2
0
        public T GetContent <T>(long ContentId, int LanguageId) where T : GenericContent, new()
        {
            var dalAPI = new EktronAPI.Content.ContentAPI();

            return(dalAPI.GetSingleItem <T>(ContentId));
        }