Menu v2
This commit is contained in:
+10
-4
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user