Esempio n. 1
0
 public async Task <List <Order> > Handle(GetPaidOrderQuery request, CancellationToken cancellationToken)
 {
     return(await this.repository
            .GetAll()
            .Where(x => x.OrderState == 2)
            .ToListAsync(cancellationToken));
 }
Esempio n. 2
0
 public async Task <IEnumerable <Order> > Handle(GetPaidOrderQuery request, CancellationToken cancellationToken)
 {
     return(await _repository
            .GetAll()
            .Where(order => order.OrderState == eOrderState.Paid)
            .ToListAsync(cancellationToken));
 }
Esempio n. 3
0
 public async Task <List <Order> > Handle(GetPaidOrderQuery request, CancellationToken cancellationToken)
 {
     return(await _orderRepository.GetPaidOrdersAsync(cancellationToken));
 }