cuenta hecha

This commit is contained in:
carlos
2024-01-22 15:47:46 -06:00
parent 2db5006ebb
commit 56afdda99a
17 changed files with 195 additions and 25 deletions
+13 -2
View File
@@ -263,14 +263,25 @@ namespace compabetov2.database
while (reader.Read())
{
int idProducto = (int)reader.GetInt64(0);
DetalleCuentaModel detalleCuenta = new DetalleCuentaModel(
new Producto(0, reader["nombre"].ToString()),
(int)reader.GetInt64(1)
new Producto(idProducto, reader["nombre"].ToString()),
(int)reader.GetInt64(2)
);
detallesCuentas.Add(detalleCuenta);
}
return detallesCuentas;
}
public static bool cancelarCuenta(int idCuenta)
{
return DAO.cancelarCuentaDAO(idCuenta);
}
public static bool saldarCuenta(Cuenta cuenta, List<DetalleCuentaModel> detallesCuentas)
{
return DAO.saldarCuentaDAO(cuenta, detallesCuentas);
}
}
}