title: Post Json Array (Table rows) to MVC Controller
body: <p>i was try to get a solution for problem.</p>
  
  <p>In View:</p>
  
  <pre><code>    var postData = [{ "MissionSheetMasterId": MS_MasIds, "EmployeeId": EmpIds, "PaidQty": Qtys, "PaidAmount": Amount }];
      console.log(postData);
  
      $.ajax({
          url: '@Url.Action("AddEmpToDetails", "Home")',           
          contentType: "application/json",
          async : true,
          data: JSON.stringify(postData),            
          dataType: "json",
          type: "POST"           
      });
  </code></pre>
  
  <p>in My Controller</p>
  
  <pre><code>[AcceptVerbs(HttpVerbs.Post)]
      public ActionResult AddEmpToDetails([DataSourceRequest]DataSourceRequest request, IEnumerable&lt;MissionSheetDetail&gt; missionsheetdetails)
      {
  
          var entities = new List&lt;MissionSheetDetail&gt;();
          if (missionsheetdetails != null &amp;&amp; ModelState.IsValid)
          {
              foreach (var missionSheetDetail in missionsheetdetails)
              {
                  var entity = new MissionSheetDetail
                  {
                      MissionSheetDetailId = missionSheetDetail.MissionSheetDetailId,
                      MissionSheetMasterId = missionSheetDetail.MissionSheetMasterId,
                      EmployeeId = missionSheetDetail.EmployeeId,
                      PaidQty = missionSheetDetail.PaidQty,
                      PaidAmount = missionSheetDetail.PaidAmount
                  };
  
                  db.MissionSheetDetails.Add(entity);
                  entities.Add(entity);
              }
              db.SaveChanges();
          }
  
          return Json(entities.ToDataSourceResult(request, ModelState));
  
      }
  </code></pre>
  
  <p><br>
  Here is my chrome console screenshot:</p>
  
  <p><a href="https://i.stack.imgur.com/EAMmW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EAMmW.png" alt="enter image description here"></a>
  <br></p>
  
  <p>But when i post single/multiple row data i just receiving as null. 
  <a href="https://i.stack.imgur.com/9Sgkg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9Sgkg.png" alt="enter image description here"></a>
  <br></p>
  
  <p>So, Please check my code and tell me is there something am i missing or my code is totally wrong.</p>