This commit is contained in:
Michael Robles
2023-12-22 22:36:22 -07:00
parent afef06b7aa
commit ee731cedf2
20 changed files with 187 additions and 103 deletions
+10 -4
View File
@@ -30,12 +30,13 @@ namespace compabetov2.database
reader["descripcion"].ToString());
Producto producto = new Producto(
(int)reader["idproducto"],
reader["nombre"].ToString(),
reader["descripcion"].ToString(),
(decimal)reader["precio"],
categoria,
(int)reader["stock"],
(int)reader["idproducto"]);
(decimal)reader["precio"],
reader["img"].ToString(),
(int)reader["stock"],
categoria);
productos.Add(producto);
}
@@ -47,5 +48,10 @@ namespace compabetov2.database
{
return DAO.insertarProductoDAO(producto);
}
public static bool insertarCategoriaDAO(Categoria categoria)
{
return DAO.insertarCategoriaDAO(categoria);
}
}
}