Exemple #1
0
        public async Task <IActionResult> ObterChamados()
        {
            try
            {
                var chamados = await _chamadoService.Consultar();

                return(Ok(chamados));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }