This commit is contained in:
Ignacio Jesús Diana
2024-02-24 17:07:56 -03:00
parent 5318e28925
commit ee0ec5f0e8
27 changed files with 122 additions and 59 deletions

View File

@@ -1,6 +1,8 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
@@ -13,5 +15,25 @@ namespace Entidades
private List<Lote> LotesDeProductosEntregados { get; set; }
public Proveedor Proveedor { get; set; }
public ReadOnlyCollection<Lote> MostrarLotes()
{
return LotesDeProductosEntregados.AsReadOnly();
}
public bool AñadirLote(Lote lote)
{
bool ret = false;
try
{
LotesDeProductosEntregados.Add(lote);
ret= true;
}
catch (Exception)
{
throw;
}
return ret;
}
}
}