title: My jquery with ajax do not work. Internal Server Error(500)
body: <p>This is my jquery:</p>
  
  <pre><code>$('#nmUsuario').on("dblclick", '.clique', function () {
      CarregaDados($(this).parent().find(".idusuario").text());    
  })
  
  function CarregaDados(ajaxParameter) {
      var str = "";
      $.ajax({
          url: '/CadastroAcesso/CarregaDadosPagina',
          datatype: 'json',
          contentType: 'application/json;charset=utf-8',
          type: 'POST',
          data: { _nivel: JSON.stringify(ajaxParameter) },
          success: function (data) {
              alert(1);
              $('#txtNome').val(data.result_carrega_pagina.NM_Usuario);
          },
          error: function (error) {
              alert(2);
          }
      })
  }
  </code></pre>
  
  <p>And this is my controller</p>
  
  <pre><code>[HttpPost]
  public JsonResult CarregaDadosPagina(int _nivel)
  {
        RupturaEntities db = new RupturaEntities();
  
        var result_carrega_pagina = db.Usuario
              .Where(n =&gt; n.IDUsuario == _nivel)
              .Select(s =&gt; new { s.NM_Usuario, s.Usuario1, s.Email }).ToList();
  
        return Json(result_carrega_pagina, JsonRequestBehavior.AllowGet);
  }
  </code></pre>
  
  <p>But, my web page do not work. What I must to do? This is the error:
  Failed to load resource: the server responded with a status of <code>500 (Internal Server Error)</code> </p>
  
  <p>How I solve this problem?</p>