title: Pass javascript array of int to controller
body: <p>I try to pass my JS array of int to my asp.net mvc 5 controller and still gets 500 status after clicking submit button. I'm using jquery ajax request.
  My request below.</p>
  <pre><code>$(&quot;#sbm-reservation&quot;).click(function (e) {
      e.preventDefault();
      var ss = [1, 2];
      $.ajax({
          traditional: true,
          url: '@Url.Action(&quot;AddReservation&quot;)',
          type: &quot;POST&quot;,
          data: { selectedSeats: ss },
          success: function (data) {
              window.location.href = data;
          }
      });
  });
  </code></pre>
  <p>This is my controller:</p>
  <pre><code>[HttpPost]
      public ActionResult AddReservation(int[] selectedSeats, AddReservationVM reservationVM)
      {
          AddReservationDTO addReservationDTO = new AddReservationDTO
          {
              ReservedSeatsList = selectedSeats.ToList(),
              UserEmail = reservationVM.UserEmail,
              ScreeningId = reservationVM.ScreeningId
          };
              reservationManageService.AddReservation(addReservationDTO);              
              return Json(Url.Action(&quot;Index&quot;, &quot;Home&quot;));
      }
  </code></pre>
  <p>Thank you for your help.</p>