public void AddOrUpdateBaseBid(BaseBid bid) { var current = _baseBids.Find(bid.ProjectId, bid.SentToId, bid.ScopeId); if (current != null) _context.Entry<BaseBid>(current).CurrentValues.SetValues(bid); else _baseBids.Add(bid); }
public void DeleteBaseBid(BaseBid bid) { _baseBids.Remove(bid); }