This commit is contained in:
fedpo
2024-08-05 02:32:20 +01:00
parent a3b7e9bfc4
commit 82ef086a3b
25 changed files with 199 additions and 219 deletions

View File

@@ -37,5 +37,13 @@ namespace Controladora
{
return RepositorioPresupuesto.Instance.Listar();
}
public ReadOnlyCollection<DetallePresupuesto> ListarDetalles(Presupuesto presupuesto)
{
Presupuesto pres = RepositorioPresupuesto.Instance.Listar().First(x=> x.Id == presupuesto.Id);
if (pres == null) return new ReadOnlyCollection<DetallePresupuesto>(new List<DetallePresupuesto>());
return pres.MostrarDetalles();
}
}
}