public void CheckForUnImportedStaff() { var newstaff = DataProvider.ImportNewStaff(); if (newstaff.Any()) { MailClient.SendMessage <NewStaffMailFormatter>("New staff imported from old system", newstaff.Aggregate((x, y) => x + "|" + y)); } }
public void SendImportedRegisteredAccounts() { var newIdentifierMappings = DataProvider.GetNewFrequentUsersCreated(); if (newIdentifierMappings.Any()) { MailClient.SendMessage <NewStaffMailFormatter>("New registered users imported from old system", newIdentifierMappings.Aggregate((x, y) => x + "|" + y)); } DataProvider.SetFrequentUserMappingAsReported(newIdentifierMappings); }
public IETCTollTransaction Build(IETCTollTransaction entity) { if (entity.TransactionID.EndsWith("D")) { MailClient.SendMessage <DuplicateTransactionMailFormatter>("Duplicate etc transaction", "Duplicate etc transaction detected: " + entity.TransactionID); } entity.LicensePlate = entity.ANPRLicensePlate; entity.ClassGUID = entity.AppliedClassGUID; entity.IssuerAuthenticatorGuid = Guid.NewGuid(); entity.OperatorAuthenticatorGuid = Guid.NewGuid(); return(!entity.TransactionID.EndsWith("D") ? entity : null); }
public ITollTransaction Build(ITollTransaction entity) { if (!string.IsNullOrEmpty(entity.PaymentDetail)) { CardDetailBuilder.EncryptedPAN(ref entity); } if (entity.TransactionID.EndsWith("D")) { MailClient.SendMessage <DuplicateTransactionMailFormatter>("Duplicate transaction", "Duplicate transaction detected: " + entity.TransactionID); entity = null; } return(entity); }