title: How to iterate in a list to find names and values with linq
body: <p>I'm developing an MVC project with .net. I have a json like this and its very long </p>
  
  <pre><code>{
      credit_id: "57214f73c3a3681e800005f4",
      department: "Production",
      id: 84493,
      job: "Casting",
      name: "Mickie McGowan",
      profile_path: "/k7TjJBfINsg8vLQxJwos6XObAD6.jpg"
  },
  {
      credit_id: "572294979251413eac0007e2",
      department: "Art",
      id: 7927,
      job: "Art Direction",
      name: "Ricky Nierva",
      profile_path: null
  },
  {
      credit_id: "572297cdc3a3682d240008f9",
      department: "Visual Effects",
      id: 7894,
      job: "Visual Effects",
      name: "Jean-Claude Kalache",
      profile_path: null
  },
  </code></pre>
  
  <p>I put that jason in a list called "directorsData.crew" I have to find the names which their departments are "Directing" and add them in a directors list. How can I do it with LINQ?</p>
  
  <p>like this </p>
  
  <pre><code>var directorsData = (tmdbMovie)JsonConvert.DeserializeObject&lt;tmdbMovie&gt;(findDirectors);
  
  List&lt;string&gt; directors = new List&lt;string&gt;();
  if (directorsData != null)
  {
      if (directorsData.crew.Count != 0)
      {
          foreach (var item in directorsData.crew) 
          {
              var name = directorsData.crew. ===?
              directors.Add(name);
          }
      }
  }
  </code></pre>