title: How to pass a dictionary from Java Script Angular client to MVC3 server
body: <p>Trying to pass a dictionary from JS to MVC with no success. The data (reportIdAndStatus in mvc controller) is null.</p>
  
  <p>I'm using angular $resource and MVC 3. Thanks.</p>
  
  <p>Angular Controller:</p>
  
  <pre><code>var reportStatusdictionary = {};
  //build a dictionary
              for (var x = 0; x &lt; reports.length; x++) {
                  reportStatusdictionary[reports[x].Id] = reports[x].StatusId
              }
  
  reportsService.getReportStatusComment({ reportStatusdictionary: reportStatusdictionary }
  </code></pre>
  
  <p>Angular Resource Definition:</p>
  
  <pre><code> getReportStatusComment:
          {
              method: 'GET',
              params: { reportIdAndStatus: '@reportIdAndStatus', command: 'GetReportStatusComment' },
              isArray: false
          }
  </code></pre>
  
  <p>MCV Controller:</p>
  
  <pre><code>    [HttpGet]
      public string GetReportStatusComment(Dictionary&lt;Guid, int&gt; reportIdAndStatus)
  </code></pre>
  
  <p>Request In Browser:</p>
  
  <p><img src="https://i.stack.imgur.com/6dkBA.png" alt="enter image description here"></p>