public IEnumerable<QUAN_HUYEN_SearchResult> QUAN_HUYEN_Search(QUAN_HUYEN_SearchResult data, int top) { try { using (var dataContext = new OOAD_EDUManagementDataContext()) { return dataContext.QUAN_HUYEN_Search( data.maQuan_Huyen, data.maXQuan_Huyen, data.maTinh_TP, data.tenQuan_Huyen, 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, data.maXTinh_TP, data.tenTinh_TP).ToList(); } } catch (Exception e) { return null; } }