/// <summary> /// Takes a string of searchterms check each for a result in the database if found add them to a return list /// </summary> /// <param name="Searchterms">A list of searchterms</param> /// <returns>retruns a list of string that only include the search terms that yielded a result in the database</returns> private List <string> CheckIngredientInDatabase(List <string> Searchterms) { List <string> results = new List <string>(); foreach (string Searchterm in Searchterms) { if (CheckCOOPProductsInDatabase(Searchterm.Trim())) { results.Add(Searchterm.Trim()); } } return(results); }
public IList <User> GetUsersWhoSearched(Searchterm searchterm) { throw new NotImplementedException(); }