Beispiel #1
0
        public IEnumerable <Employee> GetEmployeesBylocation(int locationId)
        {
            using (var locationRepo = new EmployeeTechnicalPanelRepo())
            {
                var list = locationRepo.GetAllEmployees();

                if (list.Any())
                {
                    return(list.Where(e => e.LocationId == locationId).ToList());
                }
                return(new List <Employee>());
            }
        }
Beispiel #2
0
 public PanelManager()
 {
     commonRepo = new EmployeeTechnicalPanelRepo();
 }