public async Task UpdateAsync(string id, ThreatTree tree) { await _threatTrees.ReplaceOneAsync(s => s.Id == id, tree); }
public async Task <ThreatTree> CreateAsync(ThreatTree tree) { await _threatTrees.InsertOneAsync(tree); return(tree); }