title: OData routing for function with 2 parameters
body: <p>Im creating OData controller and want it to support function with 2 params.
  Here is my current code.</p>
  
  <p>OData cofig:</p>
  
  <pre><code>ODataModelBuilder builder = new ODataConventionModelBuilder();
  builder.Namespace = "hop";
  
  builder.EntitySet&lt;ScheduleDTO&gt;("Schedules");
  var function = builder.Function("GetByEntityAndJurisdiction");
  
  function.Parameter&lt;Guid&gt;("EntityId");
  function.Parameter&lt;Guid&gt;("JurisdictionId");
  function.ReturnsCollectionFromEntitySet&lt;ScheduleDTO&gt;("Schedules");
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>            [ODataRoutePrefix("Schedules")]
              public class ScheduleODataController : BaseODataManager, IScheduleODataManager
              {
                  [ODataRoute]
                  public async Task&lt;IHttpActionResult&gt; GetAsync(ODataQueryOptions&lt;ScheduleDTO&gt; options)
                  {
                      .....
                      return Ok(schedules.Select(x =&gt; Mapper.Map&lt;ScheduleDTO&gt;(x)));
                  }
  
                  [HttpGet]
                  [ODataRoute("GetByEntityAndJurisdiction(EntityId={entityId}, JurisdictionId={jurisdictionId})")]
                  public async Task&lt;IHttpActionResult&gt; GetByEntityAndJurisdiction(ODataQueryOptions&lt;ScheduleDTO&gt; options, [FromODataUri] Guid entityId, [FromODataUri] Guid jurisdictionId)
                  {
                     .....    
                     return Ok(schedules.Select(x =&gt; Mapper.Map&lt;ScheduleDTO&gt;(x)));
                  }
              }
  </code></pre>
  
  <p>Starting my app, I have following error:</p>
  
  <blockquote>
    <p>A first chance exception of type 'System.InvalidOperationException' occurred in System.Web.OData.dll</p>
  </blockquote>
  
  <p>Additional information: The path template 'Schedules/GetByEntityAndJurisdiction(EntityId={entityId}, JurisdictionId={jurisdictionId})' on the action 'GetByEntityAndJurisdiction' in controller 'ScheduleOData' is not a valid OData path template. The request URI is not valid. Since the segment 'Schedules' refers to a collection, this must be the last segment in the request URI or it must be followed by an function or action that can be bound to it otherwise all intermediate segments must refer to a single resource.</p>
  
  <p>How to resolve this problem? Thanks in advance. </p>