public void ChangeFieldValues(IEnumerable <FieldValue> fieldValues, int dossierId) { using (var scope = new TransactionScope()) { var d = dossierRepo.Get(dossierId); u.DeleteWhere <FieldValue>(new { dossierId }); SaveFieldValues(fieldValues, dossierId); u.DeleteWhere <IndicatorValue>(new { dossierId }); SaveIndicators(dossierId); fpiService.Recalculate(d.FpiId); scope.Complete(); } }