public async Task <IActionResult> GetCpf(string cpf) { try { var results = await _med.GetAllMedicosAsyncByCpf(cpf); return(Ok(results)); } catch (System.Exception ex) { return(this.StatusCode(StatusCodes.Status500InternalServerError, "Falha no Banco de dados")); } }