Example #1
0
        public async Task <IActionResult> Get(int id)
        {
            try
            {
                var results = _service.FindById(id);

                return(Ok(results));
            }
            catch (Exception ex)
            {
                return(this.StatusCode(StatusCodes.Status500InternalServerError, "Banco de Dados falhou"));
            }
        }