public HistoryService(IStoryMakerDatabaseSettings settings, PhraseService phraseService) { var client = new MongoClient(settings.ConnectionString); var database = client.GetDatabase(settings.DatabaseName); _histories = database.GetCollection <History>(settings.HistoriesCollectionName); _phraseService = phraseService; smartCenter = new SmarCenter(); }
public PhrasesController(PhraseService phraseService) { _phraseService = phraseService; smartCenter = new SmarCenter(); }