Exemplo n.º 1
0
        public async Task <QueryResult <StoreItemViewModel> > Handle(Request request, CancellationToken cancellationToken)
        {
            var(total, items) =
                await _repository.FindAsync(_userContext.UserId, QueryParams.Create(request), cancellationToken);

            return(new QueryResult <StoreItemViewModel>(total, items));
        }