title: Passing Object in get Request to WebAPI 2
body: <p>selectedLocation is always null on the Server</p>
  
  <p>I am using Angular , what is the proper way of passing object to get method</p>
  
  <p>This is Class that is defined on Server, which is being passed as parameter in get request</p>
  
  <pre><code>public class Location
  {
     public string LocationName { get; set; }
     public string MFGName { get; set; }
  }
  </code></pre>
  
  <p>This is the method in WebAPI that is being called.</p>
  
  <pre><code>    [HttpGet]
      [ActionName("RenewToken")]
      [AllowAnonymous]
      [ResponseType(typeof(string))]
      public async Task&lt;IHttpActionResult&gt; RenewToken(Location selectedlocation)
      { 
  
      }
  </code></pre>
  
  <p>The Captured Request looks like this(In google Chrome Developers Tool)</p>
  
  <pre><code>http://localhost:58146/api/Account/RenewToken?selectedlocation=%7B%22LocationName%22:%22Guad%22,%22MFGName%22:%22Flex%22%7D
  </code></pre>
  
  <p>What am i doing wrong ?</p>