public async Task <JObject> Put(string id, [FromBody] Paciente value) { string resposta = (false).ToString(); try { await pacienteRepository.AlterarAsync(id, value); resposta = (true).ToString(); } catch (Exception) { resposta = (false).ToString(); } JObject retorno = new JObject(); retorno.Add("resposta", resposta); return(retorno); }