public IHttpActionResult DeleteTarefaViewModel(Guid id) { TarefaViewModel tarefaViewModel = _tarefaAppService.TrazerPorId(id); if (tarefaViewModel == null) { return(NotFound()); } _tarefaAppService.Deletar(tarefaViewModel); return(Ok(tarefaViewModel)); }