Beispiel #1
0
        private bool HasCategories(Event @event)
        {
            var eventCategories = @event.EventCategories
                                  .Select(eventCategory => eventCategory.Category.Name);

            return(RequiredCategories == null || RequiredCategories
                   .All(filterCategory => eventCategories
                        .Contains(filterCategory)));
        }
Beispiel #2
0
 private bool HasCategories(EventViewModel @event)
 {
     return(RequiredCategories == null || RequiredCategories
            .All(requiredCategory => @event.Categories.Contains(requiredCategory)));
 }