public void DeleteDossier(string iDossierName) { if (iDossierName.IsNullOrEmpty()) { throw new Exception("Le nom du dossier est invalide"); } var theDossier = GetDossierByName(iDossierName); using (var ts = new TransactionScope()) { //Suppression spécifications foreach (var specificationItem in theDossier.Specifications.Enum()) { DBRecordDataService.DeleteSpecification(specificationItem.SpecificationId); } //Suppression dossier DBRecordDataService.DeleteDossier(theDossier.DossierId); ts.Complete(); } }