title: How to write map/route for multiple Post
body: <p>Hi I have an API Controller which required multiple POST :</p>
  
  <p>one for Save/Update :</p>
  
  <pre><code>public Order PostOrder(Order order)
  {
  
  }
  </code></pre>
  
  <p>And, another for Search Order</p>
  
  <pre><code>public IQueryable&lt;Order&gt; SearchWithParameter(SearchOrderParameter searchParameter)
  {
  
  }
  </code></pre>
  
  <p>I have added below Route method in Global.asax</p>
  
  <pre><code>routes.MapHttpRoute(
              name: "SearchWithParameter",
              routeTemplate: "api/{controller}/{action}/{searchParameter}",
              defaults: new { action = "post" }
          );
  </code></pre>
  
  <p>In Js I am calling it as :</p>
  
  <pre><code> var SearchOrderParameter = new Object();
   SearchOrderParameter.OrderID = 1197;
   $.ajax({
      url: "http://localhost:9003/api/orders/SearchWithParameter",
      data: SearchOrderParameter,
      type: "Post",
      dataType: "json",
      success: function (value) {
          alert(value);
      },
      error: function (jqXHR, textStatus, errorThrown) {
          alert(textStatus);
      }
   });
  </code></pre>
  
  <p>But every time this method calls <code>PostOrder</code>. Please guide me, What I am missing, so that it will call <code>SearchWithParameter</code>.</p>