public void AddDegreeLog(Degree degree, LogInformation logInfo) { var degreeLog = new DegreeLog { DegreeLogIdentificator = _keyGenerator.GenerateNewId(), AlteredEntity = degree, LogData = logInfo }; _logRepository.AddDegreeLog(degreeLog); }
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); } }
public void AddDegreeLog(DegreeLog degreeLog) { _context.db.GetCollection <DegreeLog>(_degreesLogCollectionName).InsertOne(degreeLog); }