public ICollection <EmployeeView> GetListEmployees() { ICollection <Employee> employees = serviceDao.GetListEmployees(); ICollection <EmployeeView> listEmployeeView = new Collection <EmployeeView>(); foreach (Employee employee in employees) { EmployeeView employeeView = new EmployeeView(); employeeView.id = employee.id; employeeView.name = employee.name; employeeView.lastName = employee.lastname; employeeView.email = employee.email; employeeView.password = employee.password; employeeView.isAdmin = employee.isAdmin.Value; employeeView.DeviceToDeviceView(employee.DeviceEmployees); listEmployeeView.Add(employeeView); } return(listEmployeeView); }