Exemplo n.º 1
0
        public Task <IReadOnlyList <Order> > GetOrdersForUserAsync(string buyerEmail)
        {
            var spec = new OrderWithIncludeSpecification(buyerEmail);

            return(_unitOfWork.Repository <Order>().GetEntityListWithSpec(spec));
        }
Exemplo n.º 2
0
        public Task <Order> GetOrderByIdAsync(int id, string buyerEmail)
        {
            var spec = new OrderWithIncludeSpecification(id, buyerEmail);

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