title: Routing: The current request for action [...] is ambiguous between the following action methods
body: <p>I have a View called <code>Browse.chtml</code>, where the user can enter a search term, or leave the search term blank.  When entering the search term, I want to direct the page to <code>http://localhost:62019/Gallery/Browse/{Searchterm}</code>  and when nothing is entered, I want to direct the browser to <code>http://localhost:62019/Gallery/Browse/Start/Here</code>.</p>
  
  <p>When I try this, I get the error:  </p>
  
  <blockquote>
    <p>The current request for action 'Browse' on controller type 'GalleryController' is ambiguous between the following action methods:
    System.Web.Mvc.ActionResult Browse(System.String) on type AutoApp_MVC.Controllers.GalleryController
    System.Web.Mvc.ActionResult Browse(Int32, System.String) on type AutoApp_MVC.Controllers.GalleryController</p>
  </blockquote>
  
  <p>Everything I'm doing with MVC is for the first time.  I'm not sure what else to try at this point.</p>
  
  <pre><code>public ActionResult Browse(string id)
  {
      var summaries = /* search using id as search term */
      return View(summaries);
  }
  
  public ActionResult Browse(string name1, string name2)
  {
      var summaries = /* default list when nothing entered */
      return View(summaries);
  }
  </code></pre>
  
  <p>I also have this in Global.asax.cs:</p>
  
  <pre><code>    routes.MapRoute(
           "StartBrowse",
           "Gallery/Browse/{s1}/{s2}",
           new
           {
               controller = "Gallery",
               action = "Browse",
               s1 = UrlParameter.Optional,
               s2 = UrlParameter.Optional
           });
  
  
  
      routes.MapRoute(
           "ActualBrowse",
           "Gallery/Browse/{searchterm}",
           new
           {
               controller = "Gallery",
               action = "Browse",
               searchterm=UrlParameter.Optional
           });
  </code></pre>