title: How to pass dictionary parameter to web-api method?
body: <p>I've read all similar questions here, but i can't come up with solution. I'm trying to call web-api method:</p>
  
  <pre><code>[HttpGet]
  public SearchViewModel Get(SearchTypes type, string text, [FromUri]Dictionary&lt;string, string&gt; toyParams)
  {
      //Code here
  }
  </code></pre>
  
  <p>and i want to get last parameter from uri. I've tried</p>
  
  <blockquote>
    <p><a href="http://localhost:39101/#!/search/toys/fox?someParameter=123" rel="noreferrer">http://localhost:39101/#!/search/toys/fox?someParameter=123</a></p>
  </blockquote>
  
  <p>and </p>
  
  <blockquote>
    <p><a href="http://localhost:39101/#!/search/toys/fox?toyParams[0].Key=someParameter&amp;toyParams[0].Value=123" rel="noreferrer">http://localhost:39101/#!/search/toys/fox?toyParams[0].Key=someParameter&amp;toyParams[0].Value=123</a></p>
  </blockquote>
  
  <p>but toyParams <code>Dictionary</code> always empty.</p>