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; } }
public Result InsertSolderingInfo(tblSolderingOthers oSolderList) { try { return(productionManager.InsertSolderingInfo(oSolderList)); } catch (Exception ex) { return(new Result { IsSuccess = false, Message = ex.Message }); } }
public bool InsertSolderingInfo(tblSolderingOthers oSolderList) { try { _entity.tblSolderingOthers.Add(oSolderList); _entity.SaveChanges(); } catch (Exception ex) { throw ex; } return(true); }