Exemple #1
0
 public IEnumerable <Employee> SelectAll()
 {
     try
     {
         var employees = _employeeDao.SelectAll();
         foreach (var employee in employees)
         {
             employee.Skills = _employeeDao.SelectSkillsByEmployee(employee).ToList();
         }
         return(employees);
     }
     catch
     {
         return(new List <Employee>());
     }
 }