title: need to display the required field of the student table
body: <p>I am new to C# I have sending the list of students to the model. But I also need only the specified list to display when I enter the value in routing.</p>
  
  <p>this is my controller:</p>
  
  <pre><code>using System.Web.Mvc;
  using Project1.Models;
  
  namespace Project1.Controllers
  {
      public class StudentController : Controller
      {
  
          public ActionResult Index()
          {
              var studentList = new List&lt;Student&gt;
              { 
                  new Student() { StudentId = 1, Studentname = "aa", Age = 18 } ,
                  new Student() { StudentId = 2, Studentname = "bbb",  Age = 21 }           
              };
  
              return View(studentList);
          }
      }
  }
  </code></pre>