title: How to display a list using ViewBag
body: <p>Hi i need to show a list of data using viewbag.but i am not able to do it.<br>
  Please Help me..
  <br>I tried this thing:</p>
  
  <pre><code> ICollection&lt;Learner&gt; list = new HobbyHomeService().FetchLearner();
   ICollection&lt;Person&gt; personlist = new HobbyHomeService().FetchPerson(list);
   ViewBag.data = personlist;
  </code></pre>
  
  <p>and inside view:</p>
  
  <pre><code> &lt;td&gt;@ViewBag.data.First().FirstName&lt;/td&gt;
  </code></pre>
  
  <p>But this does not show up the value and gives error saying "Model.Person doesnot contain a defibition for First()"</p>