public async Task <IActionResult> Get(int consultaId)
        {
            try
            {
                var results = await _cons.GetConsultaAsyncById(consultaId);

                return(Ok(results));
            }
            catch (System.Exception ex)
            {
                return(this.StatusCode(StatusCodes.Status500InternalServerError, "Falha no Banco de dados"));

                throw ex;
            }
        }