title: Passing an array from Controller to View using Model
body: <p>I'm trying to pass an array from my controller to my view using my Model. My method does not work for some reason. I've posted it below.</p>
  
  <p>Controller:</p>
  
  <pre><code> public ActionResult Confirmation()
      {
          string[] Array = new string[2] {"Pending", "07/07/2013"};
          ConfirmationModel Con = new ConfirmationModel
          {
              Status = Array[0],
              AppDate = Array[1],
  
          };
          return View();
      }
  </code></pre>
  
  <p>Model:</p>
  
  <pre><code>public class ConfirmationModel
      {
          public string Status { get; set; }
          public string AppDate { get; set; }
      }
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>@model site.ConfirmationModel
  @{
      ViewBag.Title = "Confirmation";
  }
  
  @Html.DisplayFor(Mode =&gt; Model.Status)
  @Html.DisplayFor(Mode =&gt; Model.AppDate)
  </code></pre>