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