Пример #1
0
        public IActionResult Index()
        {
            InitializeContainer();
            var entity = new Producto
            {
                NumProveedor = 12,
                precio       = 1500,
                Stock        = 100,
                Date         = DateTime.Now,
                DateUpdate   = DateTime.Now,
                Estado       = true
            };
            var obj = ManageOperationsProducto.Create(entity);

            return(View(obj));
        }
        public IActionResult Index()
        {
            InitializeContainer();
            var entity = new Product
            {
                Code       = "12345",
                Name       = "Producto de Prueba",
                Stock      = 5,
                Buy_P      = 500,
                Sell_P     = 600,
                Date       = DateTime.Now,
                DateUpdate = DateTime.Now,
                Status     = true
            };
            var obj = ManageOperationsProduct.Create(entity);

            return(View(obj));
        }