private void AddEntryToLog(LogEntryRepository repository, string application, string message) { repository.Save(CreateLogEntry(application, message)); }
public AppController() { _configuration = Configuration.Read(); _repository = new LogEntryRepository(new MongoClient(), _configuration); }