title: Exclude certain items from being added to a list with C#
body: <p>I am getting data from a Web Api and adding it to a list in my Windows store touch app with c#. I use the code below which works fine.</p>
  
  <pre><code>HttpClient client = new HttpClient();
      HttpResponseMessage response = await client.GetAsync("http://localhost:12345/api/items");
  
  var info = new List&lt;SampleDataGroup&gt;();
  
  
              if (response.IsSuccessStatusCode)
              {
                  var content = await response.Content.ReadAsStringAsync();
  
                 var item = JsonConvert.DeserializeObject&lt;dynamic&gt;(content);
  
  
                  foreach (var data in item)
                  {
                        var infoSect = new info
                              (
  
                                  (string)data.Id.ToString(),
                                  (string)data.Name,
                                  (string)"",
                                  (string)data.PhotoUrl,
                                  (string)data.Description
  
                              );
                                   info.Add(infoSect);
                  }
               }
              else
              {
                  MessageDialog dlg = new MessageDialog("Error");
                  await dlg.ShowAsync();
              }
  
  
              this.DefaultViewModel["Sections"] = info;
  </code></pre>
  
  <p>How do I check the data retrieved from the web api, to exclude items from the list whose <code>Name</code> contains the word "Test" in it. For example, an item with the <code>Name</code> "Soda Test" should not be included in the list.</p>
  
  <p>So if Name contains "Test", do not add to list. </p>