title: .NET Core Web API: multiple [FromBody]?
body: <p>I am converting code that was written in ASP.NET MVC to ASP.NET Core MVC. While I was converting the code, I encountered a problem. We used a method that has multiple parameters like this:</p>
  
  <pre><code>[HttpPost]                                                      
  public class Search(List&lt;int&gt; ids, SearchEntity searchEntity)           
  {   
    //ASP.NET MVC                                                                   
  }
  </code></pre>
  
  <p>But when coding this in .NET Core, the <code>ids</code> parameter is <code>null</code>.</p>
  
  <pre><code>[HttpPost]                                                      
  public class Search([FromBody]List&lt;int&gt; ids,[FromBody]SearchEntity searchEntity)           
  {   
    //ASP.NET Core MVC                                                                   
  } 
  </code></pre>
  
  <p>When I place the <code>ids</code> parameter in the <code>SearchEntity</code> class, there is no problem. But I have lots of methods that are written like this. What can I do about this problem?</p>