public IEnumerable<THI_SINH_SearchResult> THI_SINH_Search(THI_SINH_SearchResult data, int? top)
 {
     try
     {
         using (var db = new OOAD_EDUManagementDataContext())
         {
             return db.THI_SINH_Search(data.maThiSinh,
                                       data.SBD,
                                       data.suDungDeThiChung,
                                       data.duThiLienThong,
                                       data.maChuyenNganh,
                                       data.maCumThi,
                                       data.maDoiTuongUuTien,
                                       data.maDonViDKDT,
                                       data.maDotTuyenSinh,
                                       data.namTuyenSinh,
                                       data.maKhoi,
                                       data.maKhuVuc,
                                       data.maNganh,
                                       data.maPhong,
                                       data.maQuan_HuyenThuongTru,
                                       data.maTinhLop10,
                                       data.maTinhLop11,
                                       data.maTinhLop12,
                                       data.maTinh_TPThuongTru,
                                       data.maTruongLop10,
                                       data.maTruongLop11,
                                       data.maTruongLop12,
                                       data.maTruongThi,
                                       data.maMonDoatGiai,
                                       data.kiThiGiai,
                                       data.loaiGiai_HuyChuong,
                                       data.CMND_HoChieu,
                                       data.diaChiNhan_KQ,
                                       data.email,
                                       data.gioiTinh,
                                       data.hoChuLot,
                                       data.hoKhau,
                                       data.maDanToc,
                                       data.maQuocTich,
                                       data.nam_TN_THPT,
                                       data.diem_TN_THPT,
                                       data.loai_TN_THPT,
                                       data.nam_TN_TCN_CD,
                                       data.truong_TN_TCN_CD,
                                       data.ngaySinh == null ? "" : data.ngaySinh.Value.ToString(Constants.FormatDate),
                                       data.noiSinh,
                                       data.soDienThoai,
                                       data.ten,
                                       data.anhHoSo,
                                       data.maNguoiLap,
                                       data.thoiGianLap == null ? "" : data.thoiGianLap.Value.ToString(Constants.FormatDate),
                                       data.maNguoiDuyet,
                                       data.thoiGianDuyet == null ? "" : data.thoiGianDuyet.Value.ToString(Constants.FormatDate),
                                       data.maTrangThaiDuyet,
                                       data.trangThaiDuLieu,
                                       top).ToList();
         }
     }
     catch (Exception e) { return null; }
 }