public async Task <ActionResult <bool> > SalvarDisciplina([FromBody] DisciplinaViewModel disciplinaViewModel) { if (ModelState.IsValid) { var model = _disciplinaViewModel .ConverterViewModelParaModel(disciplinaViewModel); if (await _disciplinaRepository.Create(model)) { return(Ok()); } } return(BadRequest()); }