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

            return(await _unitOfWork.Rerpository <Order>().ListAsync(spec));
        }
Ejemplo n.º 2
0
        public async Task <Order> GetOrderByIdAsyns(int id, string buyerEmail)
        {
            var spec = new OrdersWithItmesAndOrderingSpecification(id, buyerEmail);

            return(await _unitOfWork.Rerpository <Order>().GetEntitiyWithSpec(spec));
        }