title: Cannot pass parameters from View to Controller via JavaScript
body: <p>Although I manage to send the grid's selected row id to the controller, the url for opening action view cannot be built up (it is created /Controller/Action instead of /Controller/Action/<strong>id</strong>. So, when I try to open the view with /Controller/Action/<strong>id</strong> it is open, but it cannot be opened by button click as below. </p>
  
  <p><strong>View:</strong></p>
  
  <pre><code>&lt;input type="button" id="btn" name="name" value="send to Server!" /&gt;
  
  &lt;script&gt;
  $('#btn').click(function () {
      var items = {};
      var grid = $('#Grid').data('kendoGrid');
      var selectedElements = grid.select();
      var item = grid.dataItem(selectedElements[0]);
  
      $.ajax({
          type: "POST",
          data: item.ID, //I obtained the id properly
          url: '@Url.Action("CreateParticipant", "Training")',
          success: function (result) {
              //console.log(result);
          }
      })
  })
  &lt;/script&gt;
  </code></pre>
  
  <p><br/></p>
  
  <p><strong>Controller:</strong></p>
  
  <pre><code>// GET: /Training/CreateParticipant/5
  public ActionResult CreateParticipant(int? id)
  {
      Training training = repository.Trainings.FirstOrDefault(m =&gt; m.ID == id);
      if (training == null)
      {
          return HttpNotFound();
      }
      var trainingParticipantViewModel = new TrainingParticipantViewModel(training);
      return View(trainingParticipantViewModel);
  }
  </code></pre>
  
  <p><br/></p>
  
  <p><strong>Route.config:</strong></p>
  
  <pre><code>public class RouteConfig
  {
      public static void RegisterRoutes(RouteCollection routes)
      {
          routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  
          routes.MapRoute(
              name: "Default",
              url: "{controller}/{action}/{id}",
              //defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
              defaults: new { controller = "Multiplier", action = "Index", id = UrlParameter.Optional }
          );
      }
  }
  </code></pre>
  
  <p>Is there another example as above to pass the parameters or is there any mistake on the code above? Thanks in advance.</p>