public ContenedorProducto LlamarSPActualizar(ContenedorProducto aProducto) { if (ValidarPerfilCUD(aProducto.Retorno.Token)) { var p_OUT_CODRET = new ObjectParameter("P_OUT_CODRET", typeof(decimal)); var p_OUT_GLSRET = new ObjectParameter("P_OUT_GLSRET", typeof(string)); CapaDato.EntitiesBBDDHostel conex = new CapaDato.EntitiesBBDDHostel(); conex.SP_ACTUALIZAR_PRODUCTO (aProducto.Item.Codigo , aProducto.Item.Descripcion , aProducto.Item.Stock , aProducto.Item.StockCritico , p_OUT_CODRET , p_OUT_GLSRET ); try { aProducto.Retorno.Codigo = decimal.Parse(p_OUT_CODRET.Value.ToString()); aProducto.Retorno.Glosa = p_OUT_GLSRET.Value.ToString(); } catch (Exception) { aProducto.Retorno.Codigo = 1011; aProducto.Retorno.Glosa = "Err codret ORACLE"; } } else { aProducto.Retorno.Codigo = 100; aProducto.Retorno.Glosa = "Err expiro sesion o perfil invalido"; } return(aProducto); }