title: RESTful API with optional parameters
body: <p>Following are three Get controller actions in my API:</p>
  
  <pre><code>    public HttpResponseMessage Get(int page = 1) {
          return Request.CreateResponse(HttpStatusCode.OK);
      }
  
      public HttpResponseMessage Get(string table) {
          return Request.CreateResponse(HttpStatusCode.OK);
      }
  
      public HttpResponseMessage Get(string table, int id) {
          return Request.CreateResponse(HttpStatusCode.OK);
      }
  </code></pre>
  
  <p>How can I edit the middle function to accept an optional page parameter as does the first? When I edit it to </p>
  
  <pre><code>    public HttpResponseMessage Get(string table, int page = 1) {
          return Request.CreateResponse(HttpStatusCode.OK);
      }
  </code></pre>
  
  <p>I get a message saying there's already a Get member with the same parameter types.  </p>
  
  <p>Thanks in advance!</p>