public async Task <List <OrderSummaryReadModel> > ExecuteQueryAsync(GetOrdersFromUserQuery query, CancellationToken cancellationToken)
        {
            using (var context = _dbContextProvider.CreateContext())
            {
                var data =
                    from tOrder in context.Orders
                    where tOrder.BuyerIdentityGuid == ("buyer-" + query.userId.ToString())
                    select new OrderSummaryReadModel
                {
                    OrderNumber = tOrder.OrderNumber,
                    Date        = tOrder.Date,
                    Status      = tOrder.Status,
                    Total       = tOrder.Total
                };

                return(await data.ToListAsync());
            }
        }
 public async Task <IEnumerable <OrderSummary> > Handle(GetOrdersFromUserQuery request, CancellationToken cancellationToken)
 {
     return(await _orderQueries.GetOrdersFromUserAsync(request.CustomerId));
 }