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