public void AddOrUpdateComputedBid(ComputedBid bid) { var current = _computedBids.Find(bid.BidPackageId, bid.SentToId, bid.ScopeId); if (current != null) _context.Entry<ComputedBid>(current).CurrentValues.SetValues(bid); else _computedBids.Add(bid); }
public void DeleteComputedBid(ComputedBid bid) { _computedBids.Remove(bid); }