public override List <Employee> getElements() { List <Employee> listEmployee = new List <Employee>(); TrainingCenterEntities oEntities = ConnectionEntities.getTrainingCenter(mAcount); var list = oEntities.SP_GetAll_Employees(); foreach (var item in list) { Employee employee = new Employee(); employee.Id = item.Id; employee.Sex = item.Sex; if (item.Sex == 0) { employee.SexString = "Nữ"; } else { employee.SexString = "Nam"; } employee.Mobile = item.Mobile; employee.Address = item.Address; employee.CenterId = item.CenterId; employee.DateBirhday = item.DateBirhday; employee.DateCreate = item.DateCreate; employee.DateLastUpdate = item.DateLastUpdate; employee.DateOfIssue = item.DateOfIssue; employee.DateRegister = item.DateRegister; employee.Description = item.Description; employee.Email = item.Email; employee.EmployeeCV = item.EmployeeCV; employee.EmployeeName = item.EmployeeName; employee.CenterName = item.CenterName; employee.OuName = item.OuName; listEmployee.Add(employee); } return(listEmployee); }