Ejemplo n.º 1
0
        public async Task <IReadOnlyList <Order> > GetOrderForUserAsyn(string buyerEmail)
        {
            var spec = new OrdersWithItemsAndOrdering(buyerEmail);

            return(await _unitOfWork.Repository <Order>().ListAsyn(spec));
        }
Ejemplo n.º 2
0
        public async Task <Order> GetOrderByIdAsyn(int id, string buyerEmail)
        {
            var spec = new OrdersWithItemsAndOrdering(id, buyerEmail);

            return(await _unitOfWork.Repository <Order>().GetEntityWithSpec(spec));
        }