コード例 #1
0
        public async Task <IReadOnlyList <Order> > GetOrdersForUserAsync(string buyersEmail)
        {
            var spec = new skinet.Core.Specifications.OrdersWithItemAndOrderingSpecification(buyersEmail);

            return(await _unitofWork.Repsository <Order>().ListAsync(spec));
        }
コード例 #2
0
        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));
        }