title: C# HttpPost-Postman Json always null
body: <p>I'm Trying to make pass a Json to a webservice in c#.
  But when i pass the Json, my function in c# doesn't save it(returns null).
  This is my c# code.</p>
  <pre><code>    [HttpPost]
      public JsonResult test(Product producto)
      {
          var model = producto;
          return Json(new { success = true, result = &quot;My usuario es &quot; + model.Name});
      }
  
      public class Product
      {
          public int Id { get; set; }
          public string Name { get; set; }
          public string Category { get; set; }
      }
  </code></pre>
  <p>and this is what i'm sending by postman</p>
  <p><a href="https://i.stack.imgur.com/0bJXj.png" rel="nofollow noreferrer">Postman image</a></p>
  <pre><code>curl --location --request POST 'http://localhost/ws/test' \
  --header 'Content-Type: application/json' \
  --data-raw '{&quot;Id&quot;:1,&quot;Name&quot;:&quot;abc&quot;,&quot;Category&quot;:&quot;asd&quot;}'
  </code></pre>
  <p>Why when i'm trying to get the producto.Name returns null??
  Thanks you very much</p>