public async Task <bool> UpdateStopwords(Entities.Stopwords stopword) { var updateResult = await _context .StopwordsCollection .ReplaceOneAsync(filter : g => g.Id == stopword.Id, replacement : stopword); return(updateResult.IsAcknowledged && updateResult.ModifiedCount > 0); }
public async Task CreateStopword(Entities.Stopwords stopword) { await _context.StopwordsCollection.InsertOneAsync(stopword); }