public void DeleteAbstractJobIndex(AbstractJobIndexId jobIndexId) { try { using (var scope = new TransactionScope()) { jobIndexRep.Delete(jobIndexId); scope.Complete(); } } catch (Exception exp) { var res = jobIndexRep.TryConvertException(exp); if (res == null) { throw; } throw res; } }