feat: añadidos mostrar faltantantes

This commit is contained in:
2024-03-16 13:05:25 -03:00
parent ebe118536d
commit 3fdab465f1
4 changed files with 20 additions and 14 deletions

View File

@@ -11,26 +11,23 @@ namespace Entidades
public class Remito
{
public int Id { get; set; }
private List<Lote> LotesDeProductosEntregados { get; set; }
private List<Lote> lotesDeProductosEntregados = new List<Lote>();
public Proveedor Proveedor { get; set; }
public ReadOnlyCollection<Lote> MostrarLotes()
{
return LotesDeProductosEntregados.AsReadOnly();
return lotesDeProductosEntregados.AsReadOnly();
}
public bool AñadirLote(Lote lote)
public void AñadirLote(Lote lote)
{
bool ret = false;
try
{
LotesDeProductosEntregados.Add(lote);
ret= true;
lotesDeProductosEntregados.Add(lote);
}
catch (Exception)
{
throw;
}
return ret;
}
}
}