コード例 #1
0
        public async Task <IActionResult> Get()
        {
            try
            {
                var results = await _pac.GetAllPacientesAsync();

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