protected override void ProcessPreviousStages(Guid entityId, Guid newStageOwnerId, OpportunityStageData oldStageData, OpportunityStageData newStageData) { base.ProcessPreviousStages(entityId, newStageOwnerId, oldStageData, newStageData); var historicalStages = EntityInStageRepository.GetHistoricalOpportunityInStage(entityId, newStageData.Number); EntityInStageRepository.BulkUpdate(historicalStages, new Dictionary <string, object> { { "Historical", true } }); }
protected override void ProcessPreviousStages(Entity entity, CommonStageData oldStageData, CommonStageData newStageData) { base.ProcessPreviousStages(entity, oldStageData, newStageData); if (!HasHistoricalColumn()) { return; } Guid entityId = entity.PrimaryColumnValue; var historicalStages = EntityInStageRepository.GetHistoricalEntityInStage(entityId, newStageData.Number); EntityInStageRepository.BulkUpdate(historicalStages, new Dictionary <string, object> { { StageHistorySetting.StageHistoryHistoricalColumnName, true } }); }