I have this code:
EmployeeEntities storeDB = new EmployeeEntities();
public ActionResult Index()
{
var employee = storeDB.Employees.ToList() //ToList is not showing up!
return View(employee);
}
and my EmployeeEntities class looks like this:
public class EmployeeEntities : DbContext
{
public DbSet<Employee> Employees { get; set; }
}
Why I cannot see ToList() in my ActionResult Index() ???