// GET: api/Apuesta/5 public Apuesta Get(int id) { var repo = new ApuestaRepository(); Apuesta a = repo.Retrieve(); return(a); }
public IEnumerable <ApuestaDTO> Get() { var repo = new ApuestaRepository(); List <ApuestaDTO> apuestas = repo.Retrieve(); return(apuestas); }
// GET: api/Apuesta/ public IEnumerable <Apuesta> Get() { var repo = new ApuestaRepository(); List <Apuesta> a = repo.Retrieve(); return(a); }
// GET: api/Apuestas/5 public Apuesta Get(int id) { var repo = new ApuestaRepository(); Apuesta apuestas = repo.Retrieve(id); return(apuestas); /*var repo = new ApuestaRepository(); * Apuesta a = repo.Retrieve();*/ //return null; }