public void Insert(PartnerEmailVerificationDTO emailVerification, out byte[] id) { byte[] generatedId = SecureIdGenerator.Generate(emailVerification); Connector.ExecuteNonQuery(insertQuery, new Dictionary <string, object>() { { "Id", generatedId }, { "Partner", emailVerification.Partner }, { "EmailAddress", emailVerification.EmailAddress }, { "ExpiresOn", emailVerification.ExpiresOn } }); id = generatedId; }
public void Insert(PartnerSessionDTO session, out byte[] id) { byte[] idResult = SecureIdGenerator.Generate(session); Connector.ExecuteNonQuery(insertQuery, new Dictionary <string, object>() { { "Id", idResult }, { "Partner", session.Partner }, { "IPAddress", session.IPAddress }, { "LoggedAt", session.LoggedAt }, { "ExpiresOn", session.ExpiresOn } }); id = idResult; }