Exemplo n.º 1
0
        public Result InsertDeletedOQcBatchInfo(tblDeletdPackagingBatchData oQcBatchInfo)
        {
            try
            {
                IProduction _IProductionInsert = new WCMS_DAL_Production();
                using (
                    var transaction = new TransactionScope(TransactionScopeOption.Required,
                                                           ApplicationState.TransactionOptions))
                {
                    Result _Result = new Result();
                    _Result.IsSuccess = _IProductionInsert.InsertDeletedOQcBatchInfo(oQcBatchInfo);

                    if (_Result.IsSuccess)
                    {
                        transaction.Complete();
                    }
                    return(_Result);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }