public static DataTable Get_NoQuaHan() { try { string maxUpdateDT = null; DataTable table = new DataTable(); if (string.IsNullOrEmpty(_updateDataTime) == false) { maxUpdateDT = _updateDataTime; _updateDataTime = null; } else { maxUpdateDT = _dataAccess.Get_Max_UpdateTime(SMS_TYPE); } if (string.IsNullOrEmpty(maxUpdateDT) == false) { try { long MaxUpdateTime = long.Parse(maxUpdateDT); } catch (Exception ex) { classNoQuaHanLogWriter.WriteLog("Error Get_NoQuaHan(), " + ex.Message); return(null); } if (maxUpdateDT != null) { table = _dataAccess.GetNoQuaHan(maxUpdateDT); } } return(table); } catch (Exception e) { classNoQuaHanLogWriter.WriteLog("Err Get_NoQuaHan(): " + e.ToString()); return(null); } }