title: Passing Parameters from JQuery to Controller Action in ASP.NET MVC 3
body: <p>I have a web page that is using JQuery to communicate with the backend. I have some POST actions. However, I now have a GET action and I've noticed that the parameter values passed to it are null. My POST actions work just fine. I can't figure out why.</p>
  
  <p>From my .html file, I have the following JQuery query:</p>
  
  <pre><code>var vm = { emailAddress:"someone@somewhere.com" };
  $.ajax({
    url: "/myService/myAction",
    type: "GET",
    data: JSON.stringify(vm),
    contentType: "application/json",
    success: myAction_Succeeded,
    error: myAction_Failed
  });
  </code></pre>
  
  <p>In my controller, I have:</p>
  
  <pre><code>public class MyServiceController : Controller
  {
    [AcceptVerbs(HttpVerbs.Get)]
    public ActionResult MyAction(string emailAddress)
    {
      return Json(new { address:emailAddress });
    }
  }
  </code></pre>
  
  <p>My route is setup as follows:</p>
  
  <pre><code>context.MapRoute(
    "MyAction",
    "myService/{controller}/MyAction",
    new { controller = "MyService", action = "MyAction" }
  );
  </code></pre>
  
  <p>I have a hunch that I'm missing something in my route. But I'm not sure what it is. I followed the same syntax I used with my POST actions. Parameters with those actions work just fine. But the parameters with my GET actions, like the one above, have null values. My question is, what am I doing wrong and what if I need to pass multiple parameters?</p>
  
  <p>Thank you so much for your help!</p>