feat: añadido listar repositorio
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user