Ejemplo n.º 1
0
 public IEnumerable <TeamDTO> GetTeamsByEmployeeID(int id)
 {
     return(dbm.FindAllEmployeeTeams(true)
            .Where(x => x.Employee.EmployeeID == id)
            .SelectMany(x => dbm.FindAllTeams(true)
                        .Where(y => x.Team.TeamID == y.TeamID))
            .Distinct()
            .Select(x => converter.TeamToDTO(x)).ToList());
 }
Ejemplo n.º 2
0
 public IEnumerable <TeamDTO> GetTeams()
 {
     return(dbm.FindAllTeams(true).Select(x => converter.TeamToDTO(x)).ToList());
 }