envios a medio terminar

This commit is contained in:
carlos
2024-01-23 04:47:28 -06:00
parent 881295d920
commit da855a6c85
24 changed files with 496 additions and 407 deletions
+26
View File
@@ -315,5 +315,31 @@ namespace compabetov2.database
return estadisticas;
}
public static bool crearEnvio(Envio envio, List<DetalleEnvioModel> detallesEnvio)
{
return DAO.crearEnvio(envio, detallesEnvio);
}
public static List<Envio> conseguirEnvio()
{
List<Envio> envios = new List<Envio>();
SQLiteDataReader reader = DAO.conseguirEnvioDAO();
while (reader.Read())
{
Envio envio = new Envio(
(int)reader.GetInt64(0),
reader.GetString(1),
reader.GetString(2),
reader.GetString(3),
reader.GetString(4)
);
envios.Add(envio);
}
return envios;
}
}
}