envios a medio terminar
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user