private bool AddCost(Func <ICostV5, Cost> createCost, IEntity entity, ICostV5 entityCost) { if (entityCost == null) { return(false); } var cost = createCost(entityCost); cost.CostId = chunkData.KeyMasterOffset.VisitCostId; cost.EventId = entity.Id; return(chunkData.AddCostData(cost)); }
private bool AddCost(long eventId, Func <ICostV5, Cost> createCost, IEntity entity, ICostV5 entityCost) { if (entityCost == null) { return(false); } var cost = createCost(entityCost); cost.CostId = KeyMasterOffsetManager.GetKeyOffset(entityCost.PersonId).VisitCostId; cost.EventId = eventId; return(ChunkData.AddCostData(cost)); }