public void save(GalleryDto gallery1Dto) { try { using (TransactionScope txe = new TransactionScope(TransactionScopeOption.Required)) { var gallery = new Gallery(); _galleryMaker.copy(gallery, gallery1Dto); _galleryRepository.insert(gallery); txe.Complete(); } } catch (Exception ex) { throw ex; } }