public async Task <ActionResult <bool> > Delete(int idDisciplina)
        {
            if (await _disciplinaRepository.Delete(idDisciplina))
            {
                return(Ok());
            }

            return(BadRequest());
        }
        public async Task <IActionResult> Delete(int id)
        {
            try
            {
                var disciplina = await _repo.GetDisciplinaById(id);

                if (disciplina == null)
                {
                    return(NotFound(MSG.NaoExisteCurso));
                }
                _repo.Delete(disciplina);
                if (await _repo.SaveChangesAsync())
                {
                    return(Ok(MSG.DeleteDisciplina));
                }
            }
            catch (Exception)
            {
                return(this.StatusCode(StatusCodes.Status501NotImplemented, MSG.BancoDadosFalhou));
            }
            return(BadRequest());
        }