public async Task CheckLoginInfo(string userName, string password) { if (_dataAdapter != null) { IMongoClient client = await _dataAdapter.GetConnectionAsync(DBName); var db = client.GetDatabase(DBName); var coll = db.GetCollection <LoginInfoModel>("LoginModel"); await coll.InsertOneAsync(new LoginInfoModel() { Username = "******", Password = "******" }); } }