public void SaveConditions(AwardDefinition awardDefinition, List <AwardCondition> conditions)
 {
     _awardConditionRepository.DeleteConditions(awardDefinition.AwardDefinitionID);
     foreach (var condition in conditions)
     {
         condition.AwardDefinitionID = awardDefinition.AwardDefinitionID;
     }
     _awardConditionRepository.SaveConditions(conditions);
 }
Exemplo n.º 2
0
        public async Task SaveConditions(AwardDefinition awardDefinition, List <AwardCondition> conditions)
        {
            await _awardConditionRepository.DeleteConditions(awardDefinition.AwardDefinitionID);

            foreach (var condition in conditions)
            {
                condition.AwardDefinitionID = awardDefinition.AwardDefinitionID;
            }
            await _awardConditionRepository.SaveConditions(conditions);
        }