This repository has been archived on 2024-08-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Final_OOP/Entidades/Remito.cs
Ignacio Jesús Diana ee0ec5f0e8 prueba
2024-02-24 17:07:56 -03:00

40 lines
889 B
C#

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;
namespace Entidades
{
internal class Remito
{
public int Id { get; set; }
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;
}
}
}