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