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