public static DataTable Get_KichHoatThe() { 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) { classKichHoatTheLogWriter.WriteLog("Error Get_KichHoatThe(), " + ex.Message); return(null); } if (maxUpdateDT != null) { table = _dataAccess.GetKichHoatThe(maxUpdateDT); } } return(table); }