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); }
public PatternCard[] GetPatternCards() { return(_patternCards ?? (_patternCards = _wrappedRepository.GetPatternCards())); }