예제 #1
0
        public Result InsertSolderingInfo(tblSolderingOthers oSolderList)
        {
            try
            {
                IProduction iProductionInsert = new WCMS_DAL_Production();
                using (
                    var transaction = new TransactionScope(TransactionScopeOption.Required,
                                                           ApplicationState.TransactionOptions))
                {
                    var result = new Result {
                        IsSuccess = iProductionInsert.InsertSolderingInfo(oSolderList)
                    };

                    if (result.IsSuccess)
                    {
                        transaction.Complete();
                    }
                    return(result);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
예제 #2
0
 public Result InsertSolderingInfo(tblSolderingOthers oSolderList)
 {
     try
     {
         return(productionManager.InsertSolderingInfo(oSolderList));
     }
     catch (Exception ex)
     {
         return(new Result {
             IsSuccess = false, Message = ex.Message
         });
     }
 }
예제 #3
0
 public bool InsertSolderingInfo(tblSolderingOthers oSolderList)
 {
     try
     {
         _entity.tblSolderingOthers.Add(oSolderList);
         _entity.SaveChanges();
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return(true);
 }