Subo cambios
This commit is contained in:
@@ -466,10 +466,6 @@ namespace compabetov2.database
|
||||
string sql = "INSERT INTO Producto (nombre, descripcion, precio,img, stock, fk_idcategoria) " +
|
||||
"VALUES (@nombre, @descripcion, @precio,@img , @stock, @idcategoria)";
|
||||
|
||||
if (!producto.img.Equals(""))
|
||||
{
|
||||
producto.img = guardarImg(producto.img);
|
||||
}
|
||||
|
||||
|
||||
using (SQLiteCommand command = new SQLiteCommand(sql, conexion))
|
||||
|
||||
Reference in New Issue
Block a user