public VotingGroupService(IDDLDatabaseSettings settings)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase(settings.DatabaseName);

            VotingGroups = database.GetCollection <VotingGroup>(settings.VotingGroupsCollectionName);
        }
Exemple #2
0
        public UserService(IDDLDatabaseSettings settings)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase(settings.DatabaseName);

            Users = database.GetCollection <User>(settings.UsersCollectionName);
        }