title: ViewBag throws NullReferenceException (Object Not Sent to Instance)
body: <p>ViewBag Data throws this exception and Im not sure why? The exception errors in the View Class on the line containing ViewBag.Data. Any help would be greatly appreciated!</p>
  
  <pre><code>&lt;table&gt;
  &lt;tr&gt;
      &lt;th&gt;Response Text&lt;/th&gt;
      &lt;th&gt;Date &amp; Time of Update&lt;/th&gt;
      &lt;th&gt;Username&lt;/th&gt;
  &lt;/tr&gt;
  
  @foreach (OfficiumWebApp.Models.ResponseViewModel item in ViewBag.Data)
  {
      &lt;tr&gt;
          &lt;td&gt;@item.ResponseText&lt;/td&gt;
          &lt;td&gt;
          &lt;td&gt;@item.DateTimeOfUpdate&lt;/td&gt;
          &lt;td&gt;
          &lt;td&gt;@item.Username&lt;/td&gt;
          &lt;td&gt;
      &lt;/tr&gt;
  }
  </code></pre>
  
  <p></p>
  
  <p>Here is the method in my controller:</p>
  
  <pre><code>   [Authorize(Roles = "Customer")]
      public ActionResult Index()
      {
          var yyy = (from a in db.Responses select new ResponseViewModel {ResponseText = a.ResponseText, DateTimeOfUpdate = a.DateTimeOfUpdate.ToString(), Username = a.UserName});
          ViewBag.Data = yyy;
          var LogResponses = from b in db.Responses where b.LogID == LogID select b;
          return View(LogResponses.ToList());
      }
  </code></pre>