Exemplo n.º 1
0
 internal static List <MailQueue> GetMailQueue(int moduleId)
 {
     return(MailQueue.Query("Where ModuleID=@0", moduleId).Where(m => m.Status == "Queue" || (m.Status == "Retry" && m.RetryDateTime < DateTime.Now && m.RetryAttempt <= 3)).ToList());
 }