title: Default action in MVC4
body: <p>I have a controller called <code>Entry</code> that has three ActionResults: <code>View</code>, <code>New</code>, and <code>Edit</code>.</p>
  
  <p>The <code>View</code> action accepts a string parameter representing a specific Entry object.</p>
  
  <p>I'm trying to figure out how to not show the word "View" in the URL. In other words, I'd like it to act like a default action.</p>
  
  <p>Ideally I would like the URLs read as:</p>
  
  <blockquote>
    <ul>
    <li><strong>/entry/2DxyJR</strong> for a given entry    </li>
    <li><strong>/entry/new</strong> to create a new entry</li>
    <li><strong>/entry/edit/2DxyJR</strong> to edit a given entry </li>
    </ul>
  </blockquote>
  
  <p>I believe this can be accomplished with a custom route but am unsure how to actually do it. This route works for hiding "View", however <code>/new</code> and <code>/edit</code> don't work.</p>
  
  <pre><code>routes.MapRoute(
      name: "Entry",
      url: "entry/{id}",
      defaults: new { controller = "Entry", action = "View", id = UrlParameter.Optional }
  );
  </code></pre>
  
  <p>Sorry for the extreme noobishness of this, but I'm still trying to wrap my head around how routing works.</p>