This commit is contained in:
2024-08-11 18:24:48 -03:00
parent b62fa7b021
commit 502f10131c
12 changed files with 202 additions and 218 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();
}
}
}