Example #1
0
        public async Task <IActionResult> CriarAsync([FromBody] Curso curso)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }

            await _cursoRepository.CriarAsync(curso);

            return(Ok());
        }