title: How to post list of object in ASP.NET Core Web API
body: <p>I have seen several tutorials in which to send a json object with POST method.</p>
  
  <pre><code>[HttpPost]
  public async Task&lt;IActionResult&gt; createEntity([FromBody]Entity entity)
  {
      try
      {
           await _repository.Entity.CreateEntityAsync(entity);
           return Ok();
       }
       catch (Exception ex)
       {
            return StatusCode(500, "Internal server error");
        }
  }
  </code></pre>
  
  <p>This does the job correctly</p>
  
  <p>Now if I want to send:</p>
  
  <blockquote>
    <p>{
    "ID":1,
    "data":[
        {
            "value1":"xxxx",
            "value2":"yyyy"
        },
        {
            "value1":"zzzz",
            "value2":"wwww"
        }
    ]
    }</p>
  </blockquote>
  
  <p>if you could recommend me what would be the best option to work this</p>