public ContenedorCama LlamarSPActualizar(ContenedorCama aCama) { if (ValidarPerfilCUD(aCama.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_CAMA (aCama.Item.Codigo , aCama.Item.Descripcion , aCama.Item.Disponible , aCama.Item.CodHabitacion , p_OUT_CODRET , p_OUT_GLSRET ); try { aCama.Retorno.Codigo = decimal.Parse(p_OUT_CODRET.Value.ToString()); aCama.Retorno.Glosa = p_OUT_GLSRET.Value.ToString(); } catch (Exception) { aCama.Retorno.Codigo = 1011; aCama.Retorno.Glosa = "Err codret ORACLE"; } } else { aCama.Retorno.Codigo = 100; aCama.Retorno.Glosa = "Err expiro sesion o perfil invalido"; } return(aCama); }