title: MVC controller parameters always null
body: <p>my ajax code </p>
  
  <pre><code>function gonder() {
      var params = {
          DonationInfo: {
              name: $('#name').val(),
              lastname: $('#lastname').val(),
              phone: $('#phone').val(),
              type: $('#type').val(),
              amounth: $('#amounth').val(),
              quentity: $('#quentity').val()
          }
      };
      $.ajax({
          url: '@Url.Action("Index", "Benafactor")',
          type: 'POST',
          async: true,
          data: JSON.stringify(params),
          contentType: 'application/json; charset=utf-8',
          dataType: 'json',
          success: function (data) {
              alert(data.success);
              $('#target').html(data);
          },
          error: function () {
              alert("error");
          }
      });
  }
  </code></pre>
  
  <p>MY Controller </p>
  
  <pre><code>   [System.Web.Http.HttpPost]
      public ActionResult Index([FromBody] Mymodel data)
      {
          return Json(new { success = true });
  
      }
  </code></pre>
  
  <p>also i tried with string</p>
  
  <p>and here is Mymodel</p>
  
  <pre><code>  public class Mymodel
  {
      public string name { get; set; }
      public string lastname { get; set; }
      public string phone { get; set; }
      public string type { get; set; }
      public string amounth { get; set; }
      public string quentity { get; set; }
  }
  </code></pre>
  
  <p>i tried hard , looked for the all same question but nothing work for me please help i can see the data in request payload but can't get the parameters into controller</p>