public Beer Update(Beer item) { //UpdateOne if need performance item.brewery = null; Beers.ReplaceOne(b => b.id == item.id, item); return(item); }