Ejemplo n.º 1
0
        private IEnumerable <Profile> GetProfiles()
        {
            var patternCards = _sitecoreRepository.GetPatternCards().ToArray();

            var patternMatched = GetAllPatternsMatched(patternCards).ToList();

            var profiles = patternCards.Select(x => new Profile
            {
                Name      = x.Name,
                IsMatch   = patternMatched.Any(m => m == x.ID),
                Dimension = x.Dimension
            }).ToArray();

            return(profiles);
        }
Ejemplo n.º 2
0
 public PatternCard[] GetPatternCards()
 {
     return(_patternCards ?? (_patternCards = _wrappedRepository.GetPatternCards()));
 }