43 lines
901 B
C#
43 lines
901 B
C#
using System.Collections.ObjectModel;
|
|
using Entidades;
|
|
|
|
namespace Modelo
|
|
{
|
|
public sealed class RepositorioFactura : Repositorio<Factura>
|
|
{
|
|
|
|
public RepositorioFactura(Context context)
|
|
{
|
|
this.context = context;
|
|
}
|
|
|
|
public override IEnumerable<Factura> Listar()
|
|
{
|
|
return context.Facturas.ToList();
|
|
}
|
|
|
|
public override Factura ObtenerPorId(int Tid)
|
|
{
|
|
Factura fac = context.Facturas.Find(Tid);
|
|
return fac ?? new Factura();
|
|
}
|
|
|
|
public override void Add(Factura t)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public override void Del(Factura t)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public override void Mod(Factura t)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
|
|
}
|
|
}
|