예제 #1
0
        public IActionResult Get()
        {
            try
            {
                List <Ranking> _listaComRanking = _repository.ListarRanking();

                if (_listaComRanking.Count == 0)
                {
                    return(NoContent());
                }

                return(Ok(_listaComRanking));
            }catch (Exception _e)
            {
                return(BadRequest(_e.Message));
            }
        }