title: DB ViewModel Data not Displaying in MVC View
body: <p>New to C# and MVC, so probably an obvious error:
  My Controller logic does not send any db items to the View. I don't know what I'm doing wrong.</p>
  
  <p>I am building a multiple choice online test and have two db entitiy classes </p>
  
  <pre><code>public partial class Answer
  {
      public int ID { get; set; }
      public string CorrectAnswer { get; set; }
      public string Foil1 { get; set; }
      public string Foil2 { get; set; }
      public string Foil3 { get; set; }
  }
  
  
  public partial class Question
  {
      public int ID { get; set; }
      public string Text { get; set; }
      public string Level { get; set; }
      public string GrammarPoint { get; set; }
  }
  </code></pre>
  
  <p>I want to display questions and answer options in a View so I have this ViewModel</p>
  
  <pre><code>public class ExamViewModel
  {
      public string CorrectAnswer { get; set; }
      public string Foil1 { get; set; }
      public string Foil2 { get; set; }
      public string Foil3 { get; set; }
      public string Text { get; set; }
  }
  </code></pre>
  
  <p>This is the Controller.</p>
  
  <pre><code>public ActionResult TakeTest()
  {
      ActiveTestEntities db = new ActiveTestEntities();
      ExamViewModel exam = new ExamViewModel();
      exam.Text = db.Questions.FirstOrDefault(t =&gt; t.ID == 1).ToString();
      exam.Foil1 = db.Answers.FirstOrDefault(t =&gt; t.ID == 1).ToString();
      exam.Foil2 = db.Answers.FirstOrDefault(t =&gt; t.ID == 1).ToString();
      exam.Foil3 = db.Answers.FirstOrDefault(t =&gt; t.ID == 1).ToString();
      exam.CorrectAnswer = db.Answers.FirstOrDefault(t =&gt; t.ID == 1).ToString();
  
      return View(exam); 
  }
  </code></pre>
  
  <p>The  LINQ is supposed to send db items to this View:</p>
  
  <pre><code> @model AccessEsol.Models.ExamViewModel
  
  @{
       ViewBag.Title = "TakeTest";
  }
  
  &lt;h2&gt;TakeTest&lt;/h2&gt;
  
  @using (Html.BeginForm()) {
  @Html.AntiForgeryToken()
  @Html.ValidationSummary(true)
  
  &lt;fieldset&gt;
  
  &lt;div class="display-label"&gt;
      &lt;h3&gt;Click the correct answer:&lt;/h3&gt;
  &lt;/div&gt;
  
  &lt;div class="display-field"&gt;
  
      @Html.DisplayFor(model =&gt; model.Text )
  &lt;/div&gt;
  
  &lt;input id="Checkbox1" type="checkbox" /&gt;
  @Html.DisplayFor(model =&gt; model.Foil1)
  
  &lt;input id="Checkbox1" type="checkbox" /&gt;
  @Html.DisplayFor(model =&gt; model.Foil2)
  
  &lt;input id="Checkbox1" type="checkbox" /&gt;
  @Html.DisplayFor(model =&gt; model.CorrectAnswer )
  
  
  &lt;input id="Checkbox1" type="checkbox" /&gt;
  @Html.DisplayFor(model =&gt; model.Foil3)
  
  &lt;p&gt;
      &lt;input type="submit" value="Submit Answers" /&gt;
  &lt;/p&gt;
  
  &lt;/fieldset&gt;
  }
  </code></pre>
  
  <p>But beside each Checkbox displays  AccessEsol.Models.Answer  only, the db items have not been retrieved.</p>
  
  <p>Much appreciated if you can tell me what I am doing wrong.</p>