Exemplo n.º 1
0
        private bool IsValidNodeRole()
        {
            // Validar existencia de un nodo
            OperationResult objOperationResult6 = new OperationResult();
            int             roleId = int.Parse(ddlRole.SelectedValue);

            string filterExpression = string.Format("i_NodeId=={0}&&i_RoleId=={1}&&i_IsDeleted==0", NodeId, roleId);
            var    recordCount      = _objNodeBL.GetRoleNodeCount(ref objOperationResult6, filterExpression);

            if (recordCount != 0)
            {
                Alert.ShowInTop(string.Format("El rol de <font color='red'> {0} </font> ya se encuentra registrado.<br> Por favor elija otro Rol.", ddlRole.SelectedText));
                return(false);
            }
            return(true);
        }