Пример #1
0
        public async Task <GetProductsByCategoryQueryResponse> Handle(GetProductByCategoryQuery request, CancellationToken cancellationToken)
        {
            var products = await _repository.WhereAsync(p => p.CategoryId == request.CategoryId);

            return(new GetProductsByCategoryQueryResponse(products));
        }