title: Ajax post script not working
body: <p>This is doubtless a newbie question but I cannot find one that's similar. I want to pass a model to an action through a JS function. I have the Ajax script:</p>
  
  <pre><code>   var modelDataJSON = '@Html.Raw(Json.Encode(Model))';
  
      $.ajax({
          url: '@Url.Action("Action1", "Home")',
          type: 'POST',
          data: modelDataJSON,
          dataType: 'json'
      });
  </code></pre>
  
  <p>And I have for the action:</p>
  
  <pre><code>  public ActionResult Action1(MyModel modelDataJSON)
      {
          return Content(modelDataJSON.ToString());
  
      }
  </code></pre>
  
  <p>It's not doing anything. What have I missed? Again, sorry for the newbie question but I have already been stuck for too long on it.</p>