public IEnumerable<NHAN_SU_SearchResult> NHAN_SU_Search(NHAN_SU_SearchResult data, int? top) { try { using (var db = new OOAD_EDUManagementDataContext()) { return db.NHAN_SU_Search(data.maNhanSu, data.maXNhanSu, data.hoVaTen, data.CMND, data.diaChi, data.email, data.ngaySinh == null ? "" : data.ngaySinh.Value.ToString(Constants.FormatDate), data.noiCongTac, data.noiSinh, data.soDienThoai, 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; } }