public IActionResult Post([FromBody] TarefaViewModel viewModel) { if (viewModel == null) { return(BadRequest("Informação nula")); } var tarefa = _taskBusiness.Criar(viewModel); return(CreatedAtRoute("Get", new { tarefa.Id }, tarefa)); }