title: WebApi 'Multiple actions were found that match the request' error after making call in angular
body: <p>I feel I have the routes, controller and the call correct, but still cannot figure out why I am getting the 'Multiple actions' error. The controller itself makes call to a service bus, but I cannot get it to hit my breakpoint for GetJob. Any ideas?</p>
  
  <p>Route:</p>
  
  <pre><code>public class WebApiInitializer : IInitializableModule
      {
          public void Initialize(InitializationEngine context)
          {    
              RouteTable.Routes.MapHttpRoute(
                  "webapimethodroutes",
                  "api/msi/{controller}/{action}",
                  defaults: new {}
                  );
          }
      }
  </code></pre>
  
  <p>My Job Controller:</p>
  
  <pre><code>public class SBJobController : ApiController, IJobsController
      {
          [HttpPost]
          public CreateJobResponse CreateJob(CreateJobRequest request)
          {
              return BusProxy.Call&lt;CreateJobRequest, CreateJobResponse&gt;(request);
          }
  
          [HttpPost]
          public GetJobResponse GetJob(GetJobRequest request)
          {
              return BusProxy.Call&lt;GetJobRequest, GetJobResponse&gt;(request);
          }
      }
  </code></pre>
  
  <p>My service call in angular:</p>
  
  <pre><code>function getJobs(pRequest) {
              var request = pRequest || {
                  'Ids': [],
                  'JobNumbers': [],
                  'PageNumber': 1,
                  'PageSize': 20,
              };
              return $http.post('/api/msi/SBJob/GetJob', request).error(function (data, status, headers, config) {
                  //logError(data);
              });
          }
  </code></pre>
  
  <p>The request objects: </p>
  
  <pre><code>public class CreateJobRequest : RequestBase
      {
          public JobEntity Job { get; set; }
          public AddressEntity Address { set; get; }
      }
  
  public class GetJobRequest: RequestBase, IPageable
      {
          public int PageNumber { set; get; }
          public int PageSize { set; get; }
          public List&lt;Guid&gt; Ids { set; get; }
          public List&lt;string&gt; JobNumbers { set; get; }
          public Guid ChildOfCustomer { set; get; }
          public Guid ChildOfContact { set; get; }
          public JobTypeEnum JobType { get; set; }
      }
  </code></pre>
  
  <p>The exact error I am getting:</p>
  
  <pre><code>{
      "Message": "An error has occurred.",
      "ExceptionMessage": "Multiple actions were found that match the request: \r\nCreateJob on type MSI.ServiceBus.ServiceControllers.SBJobController\r\nGetJob on type MSI.ServiceBus.ServiceControllers.SBJobController",
      "ExceptionType": "System.InvalidOperationException",
      "StackTrace": "   at System.Web.Http.Controllers.ApiControllerActionSelector.ActionSelectorCacheItem.SelectAction(HttpControllerContext controllerContext)\r\n   at System.Web.Http.Controllers.ApiControllerActionSelector.SelectAction(HttpControllerContext controllerContext)\r\n   at System.Web.Http.ApiController.ExecuteAsync(HttpControllerContext controllerContext, CancellationToken cancellationToken)\r\n   at System.Web.Http.Dispatcher.HttpControllerDispatcher.&lt;SendAsync&gt;d__1.MoveNext()"
  }
  </code></pre>