public Result InsertAgingQcStationinfo(List <tblAgingMaster> agingBatchList) { IProduction iProductionSelect = new WCMS_DAL_Production(); var result = new Result(); using ( var transaction = new TransactionScope(TransactionScopeOption.Required, ApplicationState.TransactionOptions)) try { result.IsSuccess = iProductionSelect.InsertAgingQcStationinfo(agingBatchList); if (result.IsSuccess) { transaction.Complete(); } else { transaction.Dispose(); } } catch (Exception ex) { throw ex; } return(result); }