public async Task <QueryResult> Handle(SalesQuery query) { ProductSalesDTO productSalesDTO = await salesRepository.FindSoldProductInfo(query.ProductId, query.DateFrom, query.DateTo); return(new QueryResult { Result = productSalesDTO }); }