public void PopulateAllergenCandidates() { List <string> intersection = IngredientLists[0]; for (int i = 1; i < IngredientLists.Count(); i++) { intersection = intersection.Intersect(IngredientLists[i]).ToList(); } AllergenCandidates = intersection; }
public Client(HttpClient httpClient) { IngredientLists = new IngredientLists(httpClient); }