public async Task <IReadOnlyList <Order> > GetOrdersForUserAsync(string buyersEmail) { var spec = new skinet.Core.Specifications.OrdersWithItemAndOrderingSpecification(buyersEmail); return(await _unitofWork.Repsository <Order>().ListAsync(spec)); }
public async Task <Order> GetOrderByIdAsync(int id, string buyerEmail) { var spec = new skinet.Core.Specifications.OrdersWithItemAndOrderingSpecification(id, buyerEmail); return(await _unitofWork.Repsository <Order>().GetEntityWithSpec(spec)); }