Пример #1
0
 protected void InsertNotificationEmailLog(NotificationEmailLog entry)
 {
     using (var conn = new SqlConnection(_options.ConnectConnectionString))
     {
         conn.Open();
         conn.Execute(
             "INSERT INTO cms.NotificationEmailLog(NotificationId, UserId, EmailAddress, SentUTC)" +
             "VALUES(@NotificationId, @UserId, @EmailAddress, @SentUTC)",
             entry);
         conn.Close();
     }
 }
Пример #2
0
 public async Task InsertNotificationEmailLogAsync(NotificationEmailLog logEntry)
 {
     _connectDb.NotificationEmailLog.Add(logEntry);
     await _connectDb.SaveChangesAsync();
 }