예제 #1
0
        //  [Authorize]
        public async Task <IActionResult> inventarioBodegaXIdbodegaCentral(int IdbodegaCentral)
        {
            //Inventario_bodegaModelApp _inventario_bodegaModelApp = new Inventario_bodegaModelApp();

            //InventarioDetalebodega _inventariosDetalebodega = new InventarioDetalebodega();


            //    _inventariosDetalebodega.subwarehouse = 1;
            //ProductoBodega _productoBodega = new ProductoBodega();
            //    _productoBodega.name = "Aji (0.5 Libras)2";
            //    _productoBodega.short_description = null;
            //    _productoBodega.full_description = null;
            //    _productoBodega.sku = null;
            //    _productoBodega.approved_rating_sum = 0;
            //    _productoBodega.price= 0.7500;
            //    _productoBodega.disable_buy_button = false;
            //    _productoBodega.stock_quantity = 10000;
            //    _productoBodega.has_tier_prices = false;
            //    _productoBodega.category_ids.Add(29);
            //ImagePoductoBodega _imagePoductoBodega = new ImagePoductoBodega();
            //_imagePoductoBodega.id = 58;
            //_imagePoductoBodega.picture_id = 81;
            //_imagePoductoBodega.position = 0;
            //_imagePoductoBodega.src = "http://surti-test-nopc.azurewebsites.net/images/thumbs/0000081_aji-05-libras.jpeg";
            //_imagePoductoBodega.attachment = null;
            //_productoBodega.unit_type = "kgs";
            //_productoBodega.id = 115;
            //_productoBodega.images.Add(_imagePoductoBodega);
            //_inventariosDetalebodega.product = _productoBodega;
            //_inventariosDetalebodega.id = 48;



            //_inventario_bodegaModelApp.warehouse_inventory.Add(_inventariosDetalebodega);



            //_inventariosDetalebodega = new InventarioDetalebodega();


            //_inventariosDetalebodega.subwarehouse = 2;
            // _productoBodega = new ProductoBodega();
            //_productoBodega.name = "Ajo en Pepa (1 Unidad)2";
            //_productoBodega.short_description = "Ajo en Pepa (1 Unidad)2";
            //_productoBodega.full_description = null;
            //_productoBodega.sku = null;
            //_productoBodega.approved_rating_sum = 0;
            //_productoBodega.price = 0.7500;
            //_productoBodega.disable_buy_button = false;
            //_productoBodega.stock_quantity = 10000;
            //_productoBodega.has_tier_prices = false;
            //_productoBodega.category_ids.Add(29);
            //_productoBodega.unit_type = "kgs";
            //_productoBodega.id = 125;
            //_imagePoductoBodega = new ImagePoductoBodega();
            //_imagePoductoBodega.id = 58;
            //_imagePoductoBodega.picture_id = 81;
            //_imagePoductoBodega.position = 0;
            //_imagePoductoBodega.src = "http://surti-test-nopc.azurewebsites.net/images/thumbs/0000081_aji-05-libras.jpeg";
            //_imagePoductoBodega.attachment = null;
            //_productoBodega.images.Add(_imagePoductoBodega);
            //_inventariosDetalebodega.product = _productoBodega;
            //_inventariosDetalebodega.id = 121;



            //_inventario_bodegaModelApp.warehouse_inventory.Add(_inventariosDetalebodega);

            var InventarioBodega = _ordersBusiness.ObtenerProductoEnBodegaCentralDistribuidor(IdbodegaCentral);

            return(Ok(InventarioBodega.data));
        }