title: how to iterate a list variable in html using razor
body: <p>I am new to asp .net and MVC. I have a service method called Jumbo(). This method returns a list containing first name, last name and contact number. And I call this method from my main project as below. Also I return it to the view page.</p>
  
  <pre><code>var info = add.jumbo();
  ViewData["sample"] = info;
  
  return View("FormResults");
  </code></pre>
  
  <p>When I debugged the code the variable 'info' contains all the data I needed. The problem is how do I iterate the variable in html table using razor. I searched a lot to find a solution but I failed. Please help me with a solution. Thanks in advance.</p>