public async Task <ResourceIndexingQuery> GetAsync(Guid id)
        {
            var resource = await _resourceReadOnlyRepository.GetAsync(id);

            var query = ToQueryBuilder.MapAddResourceCommand(resource);

            return(query);
        }
        public async Task <IEnumerable <ResourceIndexingQuery> > GetAllAsync()
        {
            var resources = await _resourceReadOnlyRepository.GetAllAsync();

            var queries = ToQueryBuilder.MapAddResourceCommand(resources);

            return(queries);
        }