using System.Collections.ObjectModel; using Entidades; namespace Modelo { public sealed class RepositorioFactura : Repositorio { public RepositorioFactura(Context context) { this.context = context; } public override IEnumerable 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(); } } }