private IEnumerable <IPublication> SelectionOfPublications(string selectSource) { IEnumerable <IPublication> selectedPublications; if (selectSource == "All") { selectedPublications = database.GetAllPublications(); } else { Func <IPublication, bool> predicate = p => p.Source == selectSource; selectedPublications = database.Find(predicate); } return(selectedPublications); }