public async Task<OrderResource> GetProductsOfAnOrder(Guid id) { List<ProductDetails> listProductDetails; listProductDetails = await azureDocDBHelper.GetOrderProductsDetails(id); OrderResource orderResource = new OrderResource(); orderResource.OrderProducts = listProductDetails; return orderResource; }
public async Task<OrderResource> GetOrders() { List<Order> listOrderDetails; listOrderDetails = await azureDocDBHelper.GetOrders(); OrderResource orderResource = new OrderResource(); orderResource.Orders = listOrderDetails; return orderResource; }