예제 #1
0
 public async Task <List <Order> > Handle(GetOrderByCustomerGuidQuery request, CancellationToken cancellationToken)
 {
     return(await this.repository
            .GetAll()
            .Where(x => x.CustomerGuid == request.CustomerGuid)
            .ToListAsync(cancellationToken));
 }
예제 #2
0
 public async Task <List <Order> > Handle(GetOrderByCustomerGuidQuery request, CancellationToken cancellationToken)
 {
     return(await _orderRepository.GetOrderByCustomerGuidAsync(request.CustomerId, cancellationToken));
 }