public async Task <IReadOnlyList <Order> > GetOrdersForUserAsyns(string buyerEmail) { var spec = new OrdersWithItmesAndOrderingSpecification(buyerEmail); return(await _unitOfWork.Rerpository <Order>().ListAsync(spec)); }
public async Task <Order> GetOrderByIdAsyns(int id, string buyerEmail) { var spec = new OrdersWithItmesAndOrderingSpecification(id, buyerEmail); return(await _unitOfWork.Rerpository <Order>().GetEntitiyWithSpec(spec)); }