title: How do I identify Model from ActionFilter and bind json data to that Model
body: <p>I'm building CryptoActionFilter to decrypt api request and bind decrypted request to api models. I have different models for each api's, So I have to mention every actionname and their models to bind decrypted data to that model. Is there any other way where I don't have add actionname and model every time I add new api in my controller?</p>
  
  <p>Here is my CryptoActionFilter code:</p>
  
  <pre><code>key = Convert.ToString(((RequestData)(context.ActionArguments["data"])).KEY);
  data = Convert.ToString(((RequestData)(context.ActionArguments["data"])).DATAOBJ);
  
  if (key != "" &amp;&amp; data != "")
  {
      aesKey = RSA.RSADecrypt(key);
      string jsonData = AES.Decrypt(aesKey, data);
  
      if (actionName == "SignIn" || actionName == "NativeSignIn")
      {
          LoginRequest data = JsonConvert.DeserializeObject&lt;LoginRequest&gt;(jsonData);
          context.ActionArguments["data"] = data;
          base.OnActionExecuting(context);
      }
      else if (actionName == "GetMenu")
      {
          MenuRequest data = JsonConvert.DeserializeObject&lt;MenuRequest&gt;(jsonData);
          context.ActionArguments["data"] = data;
          base.OnActionExecuting(context);
      }
  }
  </code></pre>
  
  <p>I have 100+ api's like this, I'll have to mention everyone of them in my actionfilter, is there any sorted logic for this so that i don't need to touch my cryptoactionfilter everytime I create new api?</p>