public IEnumerable <INotification> GetNotificationsToRemove(NotificationsList notifications) { var notificationsToRemove = notifications .Select(x => x.Value.Notification) .Where(x => x.Message == _message) .ToList(); return(notificationsToRemove); }
public IEnumerable <INotification> GetNotificationsToRemove(NotificationsList notifications) { var notificationsToRemove = notifications .Select(x => x.Value.Notification) .Where(x => { object otherTag = x.Options.Tag; if (ReferenceEquals(otherTag, null)) { return(ReferenceEquals(_tag, null)); } else { return(otherTag.Equals(_tag)); } }) .ToList(); return(notificationsToRemove); }
public IEnumerable <INotification> GetNotificationsToRemove(NotificationsList notifications) { return(notifications.Select(x => x.Value.Notification)); }