示例#1
0
        public async Task <ActionResult> DisplayProductsOfOrder(Guid id)
        {
            List <ProductDetails> listProductDetails;

            listProductDetails = await azureDocDBHelper.GetOrderProductsDetails(id);

            return(PartialView("_CustomerOrder", listProductDetails));
        }
        public async Task <OrderResource> GetProductsOfAnOrder(Guid id)
        {
            List <ProductDetails> listProductDetails;

            listProductDetails = await azureDocDBHelper.GetOrderProductsDetails(id);

            OrderResource orderResource = new OrderResource();

            orderResource.OrderProducts = listProductDetails;
            return(orderResource);
        }
示例#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);
        }