This is because you need to create a context object for your data that will inherit from DbContext and add any needed connection details into your web.config. Alternatively, you can create a controller as a class instead and use non-EF data access.
If you want to use EF:
public class StudentContext : DbContext
{
DbSet<student> { get; set; }
}
Then in the controller creation, select Student as your Model and StudentContext as your context.
Alternatively, if you want to use StudentList, populated from wherever it's populated from, you can create new class and:
public class StudentController : Controller
{
public StudentContext()
{
var list = new StudentList();
}
public ActionResult ListStudents()
{
return View(list);
}
}
And so on.
Edit:
I also would like to direct you to a learner resource
Learn MVC (Model View Controller) step by step in 7 days – Day 1[
^]