title: ASP.Net MVC 4 Display Single Row of Data using button
body: <p>I am working on an ASP.Net MVC 4 application and trying to display a single row of data from the data base instead of all rows.</p>
  
  <p>The website I am designing has a list of buttons and when each button is clicked the data from the corresponding row in the database is displayed e.g. Button1 - Row1, Button2 - Row2 etc...</p>
  
  <p>Currently this is also displayed on <code>http://myexample/Movies/OneMovie</code> I would like it to be displayed on <code>http://myexample/Movies/</code></p>
  
  <p>The code I have in my controller is this:</p>
  
  <pre><code>public ActionResult OneMovie(int id = 0)
  {
      Movie movie = db.Movies.Single(m =&gt; m.ID == id);
  
      if (movie == null)
      {
          return HttpNotFound();
      }
  
      return View(movie);
  }
  </code></pre>
  
  <p>The button for my code is:</p>
  
  <pre><code>&lt;input id="Button1" type="button" value="button" name="id"/&gt;
  &lt;input id="Button2" type="button" value="button" name="id"/&gt;
  </code></pre>
  
  <p>Can anyone help me to display my data for the corresponding row when the button is clicked?</p>