예제 #1
0
        public async Task <ActionResult <IEnumerable <MediaTurmaDTO> > > ObterMediaTurma()
        {
            //Recupera o ID do Usuario Logado
            var usuarioID = User.FindFirstValue(ClaimTypes.NameIdentifier);

            try
            {
                var listaMediaTurma = await _alunoService.BuscarMediaTurma();

                return(Ok(listaMediaTurma));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }