title: How to know which controller method will be called from Web API Authorization filter
body: <p>I have a custom <code>AuthorizationFilter</code> class to handle authorization to my API.
  Now, I need to enhance it by adding some attributes to methods which will be read only in
  some situations.</p>
  
  <p>I can get the controller from <code>actionContext.ControllerContext</code> but:</p>
  
  <p>How can I know which <code>Controller</code> method will be called from the <code>IsAuthorized</code> method of my custom <code>AuthorizeAttribute</code> class? So I can get it's attributes with reflection.</p>
  
  <p>Edit: Adding more info-</p>
  
  <p>If I get a call like <code>localhost/api/myapi/?id=4</code> 
  I want to get the real name of the method that will be executed in the controller like <code>GetById(int id).</code> </p>
  
  <p>That way I could check if the method has any custom attributes I need added to it.</p>