public IList<Employee> GetByManager(int managerKey) { using (var context = new CodeFirstModels()) { return context.Employees.Where(e => e.ManagerKey == managerKey).ToList(); } }