/// <summary> /// Approves the pending. /// </summary> public static void ApprovePending() { using (DbTransaction tran = DbTransaction.Begin()) { foreach (int EMailMessageId in EMailMessage.ListPendigEMailMessageIds()) { ApprovePending(EMailMessageId); } tran.Commit(); } }