public async Task <IActionResult> Get() { try { var curso = await _repo.GetAllCurso(); if (curso.Length == 0) { return(NotFound(MSG.NaoExisteCurso)); } return(Ok(curso)); } catch (Exception) { return(this.StatusCode(StatusCodes.Status501NotImplemented, MSG.BancoDadosFalhou)); } }