public override List <StudentLists> getElements() { TrainingCenterEntities oEntities = ConnectionEntities.getTrainingCenter(mAcount); var oData = oEntities.SP_HienThi_DanhSach_HocVien_By03Month().ToList(); List <StudentLists> lisStudent = new List <StudentLists>(); Commons oCommons = new Commons(); foreach (var o in oData) { StudentLists oStudentLists = new StudentLists(); oStudentLists.Id = o.Id; oStudentLists.FullName = o.FullName; oStudentLists.SexString = o.SexString; oStudentLists.Sex = o.sex; oStudentLists.Mobile = string.IsNullOrEmpty(o.Mobile) ? "" : o.Mobile /*oCommons.DecryptInfo(o.Mobile)*/; oStudentLists.DateBirthday = o.DateBirthday; oStudentLists.Email = string.IsNullOrEmpty(o.Email) ? "" : o.Email /*oCommons.DecryptInfo(o.Email)*/; oStudentLists.Address = o.Address; oStudentLists.DateBirthday = o.DateBirthday; oStudentLists.UserId = o.UserId; oStudentLists.UserName = o.UserName; oStudentLists.CourseId = o.courseid; oStudentLists.CourseName = o.CourseName; oStudentLists.StatusId = o.StatusId; oStudentLists.StatusName = o.StatusName; oStudentLists.Description = o.Description; oStudentLists.DateCreate = (DateTime)o.DateCreate; lisStudent.Add(oStudentLists); } return(lisStudent.Count <= 0 ? null : lisStudent); }