예제 #1
0
        public void AddDegreeLog(Degree degree, LogInformation logInfo)
        {
            var degreeLog = new DegreeLog
            {
                DegreeLogIdentificator = _keyGenerator.GenerateNewId(),
                AlteredEntity          = degree,
                LogData = logInfo
            };

            _logRepository.AddDegreeLog(degreeLog);
        }
예제 #2
0
        public void AddDegreesLogs(ICollection <Degree> degrees, LogInformation logInfo)
        {
            foreach (var degree in degrees)
            {
                var degreeLog = new DegreeLog
                {
                    DegreeLogIdentificator = _keyGenerator.GenerateNewId(),
                    AlteredEntity          = degree,
                    LogData = logInfo
                };

                _logRepository.AddDegreeLog(degreeLog);
            }
        }
예제 #3
0
 public void AddDegreeLog(DegreeLog degreeLog)
 {
     _context.db.GetCollection <DegreeLog>(_degreesLogCollectionName).InsertOne(degreeLog);
 }