Esempio n. 1
0
        /// <summary>
        /// Get Categories of this instance.
        /// </summary>
        /// <returns>IQueryable{ElementCategory}.</returns>
        public IQueryable <ElementCategory> Categories()
        {
            if (_cacheRepository.Categories().Any())
            {
                return(_cacheRepository.Categories());
            }

            var _repository = _repositoryFactory.GetRepositoryInstance();

            return(GetLocalizationsEnumerable(_repository).Select(x => new ElementCategory
            {
                Category = x.Category,
                Culture = x.LanguageCode
            }).Distinct().AsQueryable());
        }
Esempio n. 2
0
 public IQueryable <ElementCategory> Categories()
 {
     return(inner.Categories());
 }
 /// <summary>
 /// Categorieses this instance.
 /// </summary>
 /// <returns></returns>
 public IEnumerable <ElementCategory> Categories()
 {
     return(inner.Categories());
 }
 /// <summary>
 /// Categories of this instance.
 /// </summary>
 /// <returns>IQueryable{ElementCategory}.</returns>
 public IQueryable <ElementCategory> Categories()
 {
     return(_innerRepository.Categories());
 }