コード例 #1
0
ファイル: JobIndexService.cs プロジェクト: mehabadi/HPMS
 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;
     }
 }