Example #1
0
        public IActionResult Get(string texto = "", int pagina = 0, int tamanio = 10)
        {
            try
            {
                UsuarioQueryInput input = new UsuarioQueryInput();
                if (texto == null)
                {
                    texto = "";
                }
                input.texto     = texto;
                input.pagina    = pagina;
                input.tamanio   = tamanio;
                input.idUsuario = 0;
                DataQuery   data        = _manager.Search(input);
                CheckStatus ChekPermiso = new CheckStatus();
                if (data.apiEstado.Equals(Status.Error))
                {
                    return(NotFound(data));
                }
                return(Ok(data));
            }

            catch (Exception ex)
            {
                _logger.LogError(LoggingEvents.SERVICE_ERROR, ex, ex.Message);
                return(new EmptyResult());
            }
        }