Exemplo n.º 1
0
        public async Task <ActionResult> DisplayProductsOfOrder(Guid id)
        {
            List <ProductDetails> listProductDetails;

            listProductDetails = await azureDocDBHelper.GetOrderProductsDetails(id);

            return(PartialView("_CustomerOrder", listProductDetails));
        }
Exemplo n.º 2
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.º 3
0
        //GET: api/Orders/5
        public async Task <ProductResource> Get(Guid id)
        {
            List <ProductDetails> listProductDetails;

            listProductDetails = await azureDocDBHelper.GetOrderProductsDetails(id);

            ProductResource productResource = new ProductResource();

            productResource.Data = listProductDetails;
            return(productResource);
        }