title: Sending Update Model to MongoDB Model through postman
body: <pre><code>public class BaseEntity
      {
          [BsonId]
          [BsonRepresentation(BsonType.ObjectId)]
          public ObjectId Id { get; set; }
      }
  
  public class Order : BaseEntity
      {
          public string OrderId { get; set; }
          public int CustomerId { get; set; }
          public Payment Payment { get; set; }
          public OrderStatus OrderStatus { get; set; }
          public ShippingAddress ShippingAddress { get; set; }
          public BillingAddress BillingAddress { get; set; }
  
          [BsonRepresentation(BsonType.Double)]
          public decimal Discount { get; set; }
          //public BsonDateTime OrderDate { get; set; }
      }
  
  // PUT api/values/5
          [HttpPut("{id}")]
          public async Task&lt;IActionResult&gt; Put(string id, [FromBody]Order Order)
          {
              if (!ModelState.IsValid)
                  return BadRequest(ModelState);
              await OrderContext.Put&lt;Order&gt;(x =&gt; x.OrderId == id, Order);
              return Ok(Order);
          }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/SLyZs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SLyZs.png" alt="enter image description here"></a></p>
  
  <p>This is my request body.But I am getting the <code>Order</code> model as null.I am not sure why . </p>
  
  <p>I have a model Order which inherits from <strong><code>BaseEntity</code></strong> . I am trying to pass a model for PUT request from postman . But I am receiving the <strong><code>Order</code></strong> model as null .</p>
  
  <p>However the interesting thing is if I remove <code>id</code> property from the request body I am getting all the model populated as the request body except the <code>id</code> field from the base entity. I receive the id property as <code>00000000000000</code> in that second case . </p>