feat: añadido listar repositorio

This commit is contained in:
2024-04-07 20:00:06 -03:00
parent 32bad7f9ac
commit c40f19e7c7
2 changed files with 31 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
using System;
using System.Collections.ObjectModel;
namespace Modelo
{
@@ -24,6 +25,11 @@ namespace Modelo
}
}
// Lista el contenido del repositorio
public ReadOnlyCollection<T> Listar(){
return almacen.AsReadOnly();
}
// Añade objetos al almacen
abstract public bool Add(T t);