title: Lambda where Expression
body: <p>I want to get the Id, but i only have the Name. 
  My code looks like this:</p>
  
  <pre><code>var comments = new List&lt;Comments&gt;
          {
              new Comments{
                  CommunityId = community.FirstOrDefault(comid =&gt; comid.IdCommunity.Where(comid.CommunityName == "TestCommunity")),
              }
          };
  </code></pre>
  
  <p>Comments is a class:</p>
  
  <pre><code>public class Comments
  {
      public int IdComment { get; set; }
      public DateTime Timestamp { get; set; }
      public string Text { get; set; }
      public int UserId { get; set; }
      public int CommunityId { get; set; }
  }
  </code></pre>
  
  <p>Community as well:</p>
  
  <pre><code>public class Community
  {
      public int IdCommunity { get; set; }
      public string CommunityName { get; set; }
      public Pictures Picture { get; set; }
  }
  </code></pre>
  
  <p>But where isn't accepted in C#.
  What do I need to do?</p>