title: parsing json from asp.net mvc controller action to ajax.actionlink
body: <p>I am working on asp.net mvc application and I have added an actionlink like this:</p>
  
  <pre><code>&lt;%= Ajax.ActionLink("Event Notifications", "processCallrecording", new { Id = ViewData["RecordingIDsEdit"] }, new AjaxOptions
  {
      OnSuccess = "StatusChanged",
      HttpMethod = "POST"
  })%&gt;
  </code></pre>
  
  <p>My controller is like this:</p>
  
  <pre><code> [HttpPost]
          public JsonResult ProcessCallRecording(int Id = 0)
          {
  int result = id;
   return Json(new {NewStatus = result.ToString()});
          }
  </code></pre>
  
  <p>My js function is like this:</p>
  
  <pre><code>function StatusChanged(data) {   
  alert("order #:" + data.NewStatus + "has a new status: "
      + data.NewStatus);
  }
  </code></pre>
  
  <p>and I see undefined in alert. I am struggling for last 2 hours on this issue. Please suggest me what is wrong ?</p>