title: The resource cannot be find - .net web api
body: <p>I've been trying for a while to make an rest api endpoint. However, when I test, it says that "The resource cannot be found." in the web browser.</p>
  
  <p>This is my controller (part of it). The method isn't accessed.</p>
  
  <pre><code>[System.Web.Http.RoutePrefix("api/ticket")]
  public class TicketController : ApiController
  {
      private readonly ITicketService _TicketService = new TicketService();
  
      [System.Web.Mvc.HttpGet]
      [System.Web.Mvc.Route("Prepare/{number:string}")]
      public TicketViewModel Prepare(string number)
      {
          ...
      }
  
  }
  </code></pre>
  
  <p>This is my registered route from RouteConfig:</p>
  
  <pre><code>routes.MapRoute(
      name: "Default api with parameter",
      url: "api/{controller}/{action}/{number}",
      defaults: new {
          controller = "Ticket",
          action = "Prepare",
          number = UrlParameter.Optional }
  );
  </code></pre>