title: How to insert data in mongodb in .net core2.1
body: <p>I am trying to insert data in mongodb by using BsonDocument. it inserting the data like following .</p>
  
  <pre><code>{
      "_id" : ObjectId("5bf3eae0118cd3f6140aee72"),
      "_t" : "MongoDB.Bson.BsonDocument, MongoDB.Bson",
      "_v" : {
          "_t" : "Newtonsoft.Json.Linq.JObject, Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed",
          "_v" : {
              "Email" : {
                  "_t" : "JValue",
                  "_v" : []
              },
              "Password" : {
                  "_t" : "JValue",
                  "_v" : []
              }
          }
      }
  }
  </code></pre>
  
  <p>The bellow code is i am using</p>
  
  <pre><code>public void Post([FromBody] Object value)
  {   
      var document = new BsonDocument ();
      document.AddRange(value.ToBsonDocument());
       _database.GetCollection&lt;dynamic&gt;("Registeration").InsertOneAsync(document);
       //Console.WriteLine("Success") ;
  }
  </code></pre>
  
  <p>In this i am using .net core api without model class.How can i insert the data in correct way. Please any one try to help me.</p>
  
  <p>Thank you...</p>