title: Multiple Logical Conditions in MongoDB Select
body: <p>I need to Query a Collection based on Multiple Condition</p>
  
  <p>My Collection</p>
  
  <pre><code>{
      "_id" : ObjectId("575f4e2efd14481598fc0ebf"),
      "Emp_ID" : "100",
      "LastUpdate" : ISODate("2016-06-13T18:30:00.000Z")
  },
  {
      "_id" : ObjectId("575f4e2efd14481598fc0ebf"),
      "Emp_ID" : "101",
      "LastUpdate" : ISODate("2016-06-14T06:33:00.000Z")
  }, ... ()
  </code></pre>
  
  <p>Now I need to Check the document is exist or not based on my below condition</p>
  
  <p>My C# Code:</p>
  
  <pre><code>private static IMongoClient _client;
  private static IMongoDatabase _database;
  
  _client = new MongoClient();
  _database = _client.GetDatabase("Test");
  
  var collection = _database.GetCollection&lt;EducationMetaModel&gt;("EmpLog");
  
  var filterBuilder = Builders&lt;BsonDocument&gt;.Filter;
  var filter = filterBuilder.Eq("_id", token.Token) 
                   &amp; filterBuilder.Eq("Emp_ID", token.UserToken) 
                   &amp; filterBuilder.Gte("LastUpdate", DateTime.UtcNow.Add(new TimeSpan(0, -15, 0)));
  
  var cItem = collection.Find(filter);
  </code></pre>
  
  <p>But I'm getting build error from the above code. Kindly assist me. I need to check the document is available or not based on filter.</p>
  
  <p>Error: </p>
  
  <blockquote>
    <p>Error 1   'MongoDB.Driver.IMongoCollection'
    does not contain a definition for 'Find' and the best extension method
    overload
    'MongoDB.Driver.IMongoCollectionExtensions.Find(MongoDB.Driver.IMongoCollection,
    System.Linq.Expressions.Expression>,
    MongoDB.Driver.FindOptions)' has some invalid
    arguments  .... ()</p>
  </blockquote>
  
  <p>Condition:</p>
  
  <pre><code>var token = new {
      Token = ObjectId("575f4e2efd14481598fc0ebf"),
      UserToken = "101"
  };
  </code></pre>
  
  <p>I need to check the token data is present along with one condition the LastUpdate should be greater than or equal to (Current Time - 15 Mins).</p>
  
  <p>Kindly assist me.</p>