title: Returning single item in model - mvc razor
body: <p>I have a finalist page that displays a list of finalists, that are clickable into a single-view page. I have the XML document being passed into a model and am spilling that data onto the main finalists page, but I can't seem to figure out how to grab the clicked finalist's id and display only that finalist on the single-view page. </p>
  
  <p>Any help is appreciated, here is my controller right now: </p>
  
  <p>I am trying to pass the newly created model in to the singleView class, but I'm not sure how to filter it to know which finalist was clicked on, and which finalist to display on the single-view page. </p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.Mvc;
  using System.Xml.Linq;
  using ProjectX_Awards.Models;
  
  namespace ProjectX_Awards.Controllers
  {
      public class FinalistsController : Controller
      {
          //
          // GET: /Finalists/
  
          public ActionResult Index()
          {
              var doc = XElement.Load(HttpContext.Server.MapPath("~/finalist.xml"));
              var finalists = doc.Descendants("finalist").Select(f =&gt; new Models.Finalist()
                  {
                      Id = (int)f.Attribute("id"),
                      Name = f.Descendants("name").First().Value,
                      Description = f.Descendants("description").First().Value,
                      Link = f.Descendants("webLink").First().Value,
                      Photo = f.Descendants("photoUrl").First().Value
                  });
  
              return View(finalists);
          }
  
          public ActionResult SingleView(Finalist model)
          {
              var singleFinalist = model;
  
              return View(singleFinalist);
          }
  
      }
  } 
  </code></pre>