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