public IActionResult Details(int id) { var detalle = new ProductoDA(); var model = detalle.GetProductoId(id); return(View(model)); }
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)); }