Exemplo n.º 1
0
        private bool HasTags(Event @event)
        {
            var eventTags = @event.EventTags
                            .Select(eventTag => eventTag.Tag.Name);

            return(RequiredTags == null || RequiredTags
                   .All(filterTag => eventTags
                        .Contains(filterTag)));
        }
Exemplo n.º 2
0
 private bool HasTags(EventViewModel @event)
 {
     return(RequiredTags == null || RequiredTags
            .All(requiredTag => @event.Tags.Contains(requiredTag)));
 }