The example method returns all Quotation objects where either the QuotationText or the Subject contain the search term:
/// <summary> /// Gets quotes matching either subject or text in quote. /// </summary> /// <param name="like">The search term</param> /// <returns>List<Quotation></returns> public static List<Quotation> GetQuotesBySubjectOrTextInQuote(string like) { var foundQuotes= Quotes.Where(x => x.QuotationText.ToLower().Contains(like.ToLower())).Union(Quotes.Where(x => x.Subject.ToLower().Contains(like.ToLower())).ToList()); return foundQuotes.ToList(); }