title: Data annotation dynamically get parameter from controller
body: <p>I would validate if the currenlty active user has permission to acces the company.
  Below I have two samples of GET and PUT request, to fetch company details and to updated company details.
  Is it possible to write a Data Annotation so I can point, or send a property to it so I'm able to validate if the user can access it?</p>
  <p>Sample:</p>
  <pre><code>[ValidateCompanyPermission(&quot;companyId&quot;)]
  [HttpGet]
  public async Task&lt;IActionResult&gt; GetCompany(long companyId)
  {
      
  }
  
  public class CompanyRequest
  {
      public long UpdatedById { get; set; }
      public string NewCompanyName
  }
  
  [ValidateCompanyPermission(&quot;UserRequest.UpdatedById&quot;)]
  [HttpPut]
  public async Task&lt;IActionResult&gt; GetCompanz(CompanyRequest companyRequest)
  {
      
  }
  </code></pre>