public Result InsertAgingcBatchInfo(AgingBatchInfo agingBatchInfo) { try { IProduction _IProductionInsert = new WCMS_DAL_Production(); using ( var transaction = new TransactionScope(TransactionScopeOption.Required, ApplicationState.TransactionOptions)) { Result _Result = new Result(); _Result.IsSuccess = _IProductionInsert.InsertAgingcBatchInfo(agingBatchInfo); if (_Result.IsSuccess) { transaction.Complete(); } return(_Result); } } catch (Exception ex) { throw ex; } }