title: Unable to get all ajax parameters in MVC Controller
body: <p>When creating an ajax call to controller getting 2nd parameter only.</p>
  
  <p>Ajax:</p>
  
  <pre><code>return $http({
            method: "post",
            url: "/myform/AddEmployee",
            data: '{ "EmpDetail":' + JSON.stringify(employee) + ', "File_ID":' + File_ID + '}',
            //data: JSON.stringify(employee,File_ID),
            dataType: "json"
        })
  </code></pre>
  
  <p>Controller:-</p>
  
  <pre><code>public string AddEmployee(EmpDetail Emp, int? File_ID)
        {
         ....
  }
  </code></pre>
  
  <p>Model:-</p>
  
  <pre><code> public partial class EmpDetail
      {
          public int Id { get; set; }
          public string name { get; set; }
          public System.DateTime DOB { get; set; }
          public string Gender { get; set; }
          public string Email { get; set; }
          public string Mobile { get; set; }
          public string Address { get; set; }
          public System.DateTime JoiningDate { get; set; }
          public int DepartmentID { get; set; }
          public int DesignationID { get; set; }
          public Nullable&lt;int&gt; FileId { get; set; }
          public Nullable&lt;int&gt; CountryId { get; set; }
          public Nullable&lt;int&gt; StateId { get; set; }
      }
  </code></pre>
  
  <p>I have also tried </p>
  
  <pre><code>data: JSON.stringify(employee,File_ID)
  </code></pre>
  
  <p>I know this is wrong, but here I'm getting the first parameter only.</p>