Exemplo n.º 1
0
        public void AddUserLog(CertificationPlatformUser user, LogInformation logInfo)
        {
            var userLog = new CertificationPlatformUserLog
            {
                CertificationPlatformUserLogIdentificator = _keyGenerator.GenerateNewId(),
                AlteredEntity = user,
                LogData       = logInfo
            };

            _logRepository.AddUserLog(userLog);
        }
Exemplo n.º 2
0
        public void AddUsersLogs(ICollection <CertificationPlatformUser> users, LogInformation logInfo)
        {
            foreach (var user in users)
            {
                var userLog = new CertificationPlatformUserLog
                {
                    CertificationPlatformUserLogIdentificator = _keyGenerator.GenerateNewId(),
                    AlteredEntity = user,
                    LogData       = logInfo
                };

                _logRepository.AddUserLog(userLog);
            }
        }
Exemplo n.º 3
0
 public void AddUserLog(CertificationPlatformUserLog userLog)
 {
     _context.db.GetCollection <CertificationPlatformUserLog>(_usersLogCollectionName).InsertOne(userLog);
 }