Пример #1
0
        public async Task <Boolean> ExibeMenuComandos()
        {
            ModelComando _modelComandos = new ModelComando();

            Boolean retorno = false;

            ServiceResult <List <ComandoDto> > result = new ServiceResult <List <ComandoDto> >();

            try
            {
                _tokensource = new CancellationTokenSource();

                try
                {
                    result = await _modelComandos.ListComandoRastreador(
                        PainelResumoListViewSource.IdRastreador
                        , _tokensource.Token
                        );

                    if (result.Data != null && result.Data.Count > 0)
                    {
                        retorno = true;
                    }
                }
                catch
                {
                    retorno = false;
                }
            }
            catch
            {
                retorno = false;
            }

            return(retorno);
        }