feat: añadidos mostrar faltantantes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user