Beispiel #1
0
 public Result InsertDeletedOQcBatchInfo(tblDeletdPackagingBatchData oQcBatchInfo)
 {
     try
     {
         return(productionManager.InsertDeletedOQcBatchInfo(oQcBatchInfo));
     }
     catch (Exception ex)
     {
         return(new Result {
             IsSuccess = false, Message = ex.Message
         });
     }
 }
Beispiel #2
0
 public bool InsertDeletedOQcBatchInfo(tblDeletdPackagingBatchData oQcBatchInfo)
 {
     try
     {
         _entity.tblDeletdPackagingBatchData.Add(oQcBatchInfo);
         _entity.SaveChanges();
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return(true);
 }
Beispiel #3
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;
            }
        }