示例#1
0
        public IActionResult GetRankingTurma(int id)
        {
            try
            {
                List <Ranking> _listaRanking = _repository.ListarRankingDaTurma(id);

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

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