// GET: api/ApuestasDTO

        /*
         * public IEnumerable<ApuestaDTO> Get()
         * {
         *  var repo = new ApuestaRepository();
         *  List<ApuestaDTO> apuestas = repo.RetrieveDTO();
         *  return apuestas;
         * }
         */

        /*
         * public Apuesta Get(int ApuestaId)
         * {
         * var repo = new ApuestaRepository();
         * Apuesta m = repo.RetrieveById(ApuestaId);
         * return m;
         * }
         */

        //CONTROLADOR PREGUNTA 1 EXAMEN ***************************************
        public List <Apuesta> Get(int id)
        {
            var repo = new ApuestaRepository();

            return(repo.RetrieveByTeam(id));
        }
        public List <Apuesta> Get(string equipo)
        {
            var repo = new ApuestaRepository();

            return(repo.RetrieveByTeam(equipo));
        }