コード例 #1
0
        public IActionResult Details(int id)
        {
            var detalle = new ProductoDA();
            var model   = detalle.GetProductoId(id);

            return(View(model));
        }
コード例 #2
0
        public IActionResult Edit(int id)
        {
            var catDA = new CategoriaDA();

            ViewBag.Categoria = catDA.getCategoria();

            var proDA = new ProductoDA();
            var model = proDA.GetProductoId(id);

            return(View(model));
        }