title: In my POST request action JsonProperty mapping is not working
body: <p>I have a model and controller like the following</p>
  
  <pre><code>public class OrderModel
  {
      [JsonProperty("order_id")]        
      public string ID { get; set; }
  
      [JsonProperty("delivery_shift")]
      public string DeliveryShift { get; set; }
      public string InvoiceType { get; set; }
  }
  </code></pre>
  
  <pre><code>[Route("api/[controller]")]
  [ApiController]
  public class OrderController : ControllerBase
  {
      [HttpPost]
      public IActionResult Index([FromBody] OrderModel order) {
  
          return new JsonResult(new
          {
              order.ID,
              order.DeliveryShift,
              order.InvoiceType
          });
      }
  }
  </code></pre>
  
  <p>Now when i submit a post request with this json in the body then <code>order_id</code> and <code>delivery_shift</code> doesn't map with the model.</p>
  
  <pre><code>{"order_id": "OrderID", "delivery_shift": "evening", "InvoiceType": "DUE"}
  </code></pre>
  
  <p>but it works when i submit the json in this format, <strong>BUT I need the previous format to work</strong>.</p>
  
  <pre><code>{"ID": "OrderID", "DeliveryShift": "evening", "InvoiceType": "DUE"}
  </code></pre>
  
  <p>Thanks.</p>
  
  <p><strong>SOLVED</strong></p>
  
  <p>Thanks to @AhmetUrun Updating model with <code>JsonPropertyName</code> attribute worked.</p>
  
  <pre><code>public class OrderModel
  {
      [JsonPropertyName("order_id")]        
      public string ID { get; set; }
  
      [JsonPropertyName("delivery_shift")]
      public string DeliveryShift { get; set; }
  
      public string InvoiceType { get; set; }
  }
  </code></pre>