public RestaurantsService(ITreatDatabaseSettings settings) { var client = new MongoClient(settings.ConnectionString); var database = client.GetDatabase(settings.DatabaseName); _restaurants = database.GetCollection <Restaurants>(settings.RestaurantsCollectionName); }
public UserService(ITreatDatabaseSettings settings) { var client = new MongoClient(settings.ConnectionString); var database = client.GetDatabase(settings.DatabaseName); _users = database.GetCollection <User>(settings.UsersCollectionName); }
public LoginService(ITreatDatabaseSettings settings) { var client = new MongoClient(settings.ConnectionString); var database = client.GetDatabase(settings.DatabaseName); _login = database.GetCollection <Login>(settings.LoginCollectionName); }
public TreatService(ITreatDatabaseSettings settings) { var client = new MongoClient(settings.ConnectionString); var database = client.GetDatabase(settings.DatabaseName); _treat = database.GetCollection <Treat>(settings.TreatCollectionName); }