private void SearchMemes(string value) { if (string.IsNullOrWhiteSpace(value)) { MemePaths = new ObservableCollection <string>(Memes); } else { MemePaths = new ObservableCollection <string>(Memes.Where(x => x.ToLower().Contains(value.ToLower()))); } }
public void NavigateByMemeTag(Guid guid) { IEnumerable <Meme> memes = Memes.Where(meme => meme.Tags.FirstOrDefault(m => m.MemeTag.Id == guid) != null); NewRequest?.Invoke(memes); }
public void NavigateByRequest(Func <Meme, bool> func) { IEnumerable <Meme> memes = Memes.Where(func); NewRequest?.Invoke(memes); }