public bool ValidarAtributo(BEPersonaAtributo pItem, ref string p_Cod_personaExist, ref string p_Name_personaExist) { int codigoRetorno = -1; try { using (_DBMLPersonasDataContext SQLDC = new _DBMLPersonasDataContext(conexion)) { codigoRetorno = SQLDC.omgc_P_PersonaAtributo_Valida ( pItem.codEmpresa, pItem.CodigoPersona, pItem.CodigoArguTipoAtributo, pItem.DescripcionAtributo, ref p_Cod_personaExist, ref p_Name_personaExist ); } if (p_Cod_personaExist == null) { codigoRetorno = 1; } } catch (Exception ex) { throw ex; } return(codigoRetorno == 0 ? true : false); }