public static DataTable Get_SendEmail() { string maxUpdateDT = null; DataTable table = new DataTable(); if (string.IsNullOrEmpty(_updateDateTime) == false) { maxUpdateDT = _updateDateTime; _updateDateTime = null; } else { maxUpdateDT = _dataAccess.Get_Max_UpdateTime_SendEmail(SMS_TYPE); } if (string.IsNullOrEmpty(maxUpdateDT) == false) { try { long MaxUpdateTime = long.Parse(maxUpdateDT); } catch (Exception ex) { classSendEmailLogWriter.WriteLog("Error Get_SendEmail(), " + ex.Message); return(null); } if (maxUpdateDT != null) { table = _dataAccess.GetSendEmail(maxUpdateDT); } } ////////// ///table = _dataAccess.GetSendEmail(maxUpdateDT); return(table); }