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