public void AddUserLog(CertificationPlatformUser user, LogInformation logInfo) { var userLog = new CertificationPlatformUserLog { CertificationPlatformUserLogIdentificator = _keyGenerator.GenerateNewId(), AlteredEntity = user, LogData = logInfo }; _logRepository.AddUserLog(userLog); }
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); } }
public void AddUserLog(CertificationPlatformUserLog userLog) { _context.db.GetCollection <CertificationPlatformUserLog>(_usersLogCollectionName).InsertOne(userLog); }