title: How can i only check one model with ModelState.IsValid
body: <p>I'm trying to only check one model with <code>ModelState.IsValid</code> once, after that I want to check another model with <code>ModelState.IsValid</code> and I want to do it all in one action.
  Let me show to you what I really want to do below:</p>
  <pre><code>[AllowAnonymous]
  [HttpPost]
   public async Task&lt;IActionResult&gt; FillingInformation(Company company, Agency agency, List&lt;IFormFile&gt; files, Address address)
   {
     if (ModelState.IsValid(&quot;Company&quot;))//if its possible
      {
          //.....
      }
      else if (ModelState.IsValid(&quot;Agency&quot;))//if its possible
      {
          //.....
      }
      else if (ModelState.IsValid(&quot;Address&quot;))//if its possible
      {
          //.....
      }
      else
      {
          //.....
      }
   }
  </code></pre>
  <p>I already searched and tried to apply it to my code such as things like: <code>GetFieldValidationState</code> , <code>ValidationState</code> and <code>Microsoft.AspNetCore.Mvc.ModelBinding.ModelValidationState</code> but I just could not apply them well.</p>
  <p>I tried to write an extension method which checks <code>ModelState.IsValid</code> but it still checking both models not one.</p>