예제 #1
0
        public async Task <List <Order> > GetOrdersAsync(string buyerId)
        {
            var spec = new OrdersSpecification(buyerId);

            return(await _orderRepository.ListAsync(spec));
        }
예제 #2
0
        public async Task <Order> GetOrderAsync(int id)
        {
            var spec = new OrdersSpecification(id);

            return((await _orderRepository.ListAsync(spec)).FirstOrDefault());
        }