public void Obtener() { ICostoFinancieroRepository repository = new CostoFinancieroRepository(new VentaContext()); List <CostoFinanciero> bancos = repository.Obtener(1).ToList(); }
public static Task <List <CostoFinanciero> > ObtenerAsync(int idTarjeta) { ICostoFinancieroRepository costoFinancieroRepository = new CostoFinancieroRepository(new VentaContext()); return(costoFinancieroRepository.Obtener(idTarjeta)); }