public async Task <List <Order> > GetOrdersAsync(string buyerId) { var spec = new OrdersSpecification(buyerId); return(await _orderRepository.ListAsync(spec)); }
public async Task <Order> GetOrderAsync(int id) { var spec = new OrdersSpecification(id); return((await _orderRepository.ListAsync(spec)).FirstOrDefault()); }