crud de variante terminado, tal vez con detalles
This commit is contained in:
@@ -28,7 +28,7 @@ namespace compabetov2.admin
|
||||
try
|
||||
{
|
||||
string nombre = txtNombre.Text;
|
||||
decimal precio = decimal.Parse(txtPrecio.Text);
|
||||
decimal precio = 0;
|
||||
//valida que se haya colocado alguna imagen
|
||||
if (!imagePath.Equals("")) {
|
||||
Producto producto = new Producto(-1, nombre, "", precio, imagePath, 0);
|
||||
|
||||
Reference in New Issue
Block a user