示例#1
0
 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;
 }
示例#2
0
 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;
 }